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 • committed by trapexit
parent e5d897f3dc
commit 8199cc8a8b
4 changed files with 12 additions and 12 deletions

View file

@ -37,14 +37,14 @@ _chmod_loop_core(const std::string &basepath_,
const mode_t mode_,
PolicyRV *prv_)
{
int rv;
fs::path fullpath;
fullpath = basepath_ / fusepath_;
errno = 0;
fs::lchmod(fullpath,mode_);
rv = fs::lchmod(fullpath,mode_);
prv_->insert(errno,basepath_);
prv_->insert(rv,basepath_);
}
static