mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-19 22:46:34 -05:00
Fix error handling in fuse chmod, chown, setxattr, removexattr
This commit is contained in:
parent
27d561fc13
commit
dbb2932158
4 changed files with 12 additions and 12 deletions
|
|
@ -36,14 +36,14 @@ _removexattr_loop_core(const fs::path &basepath_,
|
|||
const char *attrname_,
|
||||
PolicyRV *prv_)
|
||||
{
|
||||
int rv;
|
||||
fs::path fullpath;
|
||||
|
||||
fullpath = basepath_ / fusepath_;
|
||||
|
||||
errno = 0;
|
||||
fs::lremovexattr(fullpath,attrname_);
|
||||
rv = fs::lremovexattr(fullpath,attrname_);
|
||||
|
||||
prv_->insert(errno,basepath_);
|
||||
prv_->insert(rv,basepath_);
|
||||
}
|
||||
|
||||
static
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue