diff --git a/src/fuse_ioctl.cpp b/src/fuse_ioctl.cpp index f30e6b2e..e0a06b44 100644 --- a/src/fuse_ioctl.cpp +++ b/src/fuse_ioctl.cpp @@ -143,6 +143,8 @@ _ioctl_dir_base(const Policy::Search &searchFunc_, rv = searchFunc_(branches_,fusepath_,branches); if(rv < 0) return rv; + if(branches.empty()) + return -ENOENT; fullpath = branches[0]->path / fusepath_;