diff --git a/src/fuse_getattr.cpp b/src/fuse_getattr.cpp index 3bebb35e..6a923cb6 100644 --- a/src/fuse_getattr.cpp +++ b/src/fuse_getattr.cpp @@ -134,6 +134,8 @@ _getattr(const Policy::Search &searchFunc_, rv = searchFunc_(branches_,fusepath_,branches); if(rv < 0) return rv; + if(branches.empty()) + return -ENOENT; fullpath = branches[0]->path / fusepath_;