summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
83519bb)
Seemingly, this hit WSL1, making it impossible to run updatedb there.
int fd = -1;
#ifdef O_TMPFILE
fd = open(path.c_str(), O_WRONLY | O_TMPFILE, 0640);
int fd = -1;
#ifdef O_TMPFILE
fd = open(path.c_str(), O_WRONLY | O_TMPFILE, 0640);
- if (fd == -1 && errno != EOPNOTSUPP) {
+ if (fd == -1 && errno != EOPNOTSUPP && errno != EISDIR) {
perror(path.c_str());
exit(1);
}
perror(path.c_str());
exit(1);
}