diff --git a/src/fuse_getxattr.cpp b/src/fuse_getxattr.cpp index 55d5b43c..6a84ab82 100644 --- a/src/fuse_getxattr.cpp +++ b/src/fuse_getxattr.cpp @@ -157,6 +157,8 @@ _getxattr(const Policy::Search &searchFunc_, rv = searchFunc_(branches_,fusepath_,branches); if(rv < 0) return rv; + if(branches.empty()) + return -ENOENT; fullpath = branches[0]->path / fusepath_;