summaryrefslogtreecommitdiff
path: root/src/rofiles-fuse
diff options
context:
space:
mode:
Diffstat (limited to 'src/rofiles-fuse')
-rw-r--r--src/rofiles-fuse/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rofiles-fuse/main.c b/src/rofiles-fuse/main.c
index 12a9d886..88cdba6c 100644
--- a/src/rofiles-fuse/main.c
+++ b/src/rofiles-fuse/main.c
@@ -96,6 +96,8 @@ callback_readdir (const char *path, void *buf, fuse_fill_dir_t filler,
if (!*path)
{
dfd = fcntl (basefd, F_DUPFD_CLOEXEC, 3);
+ if (dfd < 0)
+ return -errno;
lseek (dfd, 0, SEEK_SET);
}
else