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