summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
85d37ab)
When an empty directory (readable by the user) is passed to this
function, set the appropriate error code.
Signed-off-by: Julien Desfossez <julien.desfossez@efficios.com>
}
metafd = openat(dirfd, "metadata", O_RDONLY);
if (metafd < 0) {
}
metafd = openat(dirfd, "metadata", O_RDONLY);
if (metafd < 0) {
- ret = close(dirfd);
- if (ret < 0) {
- perror("close");
- goto error;
- }
+ close(dirfd);
+ ret = -1;
+ continue;