Fix error handling in fuse chmod, chown, setxattr, removexattr

This commit is contained in:
Antonio SJ Musumeci 2026-03-10 19:37:57 -05:00
parent 56e1bc7b0c
commit ca4c7304da
4 changed files with 12 additions and 12 deletions

View file

@ -38,14 +38,14 @@ _chown_loop_core(const fs::path &basepath_,
const gid_t gid_,
PolicyRV *prv_)
{
int rv;
fs::path fullpath;
fullpath = basepath_ / fusepath_;
errno = 0;
fs::lchown(fullpath,uid_,gid_);
rv = fs::lchown(fullpath,uid_,gid_);
prv_->insert(errno,basepath_);
prv_->insert(rv,basepath_);
}
static