diff --git a/src/fuse_statx_supported.icpp b/src/fuse_statx_supported.icpp index e16f792f..62024533 100644 --- a/src/fuse_statx_supported.icpp +++ b/src/fuse_statx_supported.icpp @@ -132,6 +132,8 @@ _statx(const Policy::Search &searchFunc_, rv = searchFunc_(branches_,fusepath_,branches); if(rv < 0) return rv; + if(branches.empty()) + return -ENOENT; fullpath = branches[0]->path / fusepath_;