diff --git a/src/fuse_chown.cpp b/src/fuse_chown.cpp index b51c4c99..4f70f1fc 100644 --- a/src/fuse_chown.cpp +++ b/src/fuse_chown.cpp @@ -78,6 +78,8 @@ _chown(const Policy::Action &actionFunc_, rv = actionFunc_(branches_,fusepath_,branches); if(rv < 0) return rv; + if(branches.empty()) + return -ENOENT; ::_chown_loop(branches,fusepath_,uid_,gid_,&prv);