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 9bbd43c70c
commit da8474a4f6
4 changed files with 12 additions and 12 deletions

View file

@ -110,14 +110,14 @@ _setxattr_loop_core(const fs::path &basepath_,
const int flags_,
PolicyRV *prv_)
{
int rv;
fs::path fullpath;
fullpath = basepath_ / fusepath_;
errno = 0;
fs::lsetxattr(fullpath,attrname_,attrval_,attrvalsize_,flags_);
rv = fs::lsetxattr(fullpath,attrname_,attrval_,attrvalsize_,flags_);
prv_->insert(errno,basepath_);
prv_->insert(rv,basepath_);
}
static