Revert removal of readdir init setup, simplify cfg usage

This commit is contained in:
Antonio SJ Musumeci 2025-09-04 20:04:22 -05:00
parent 99c28ad3bc
commit 0a3c303418
42 changed files with 388 additions and 426 deletions

View file

@ -96,20 +96,18 @@ int
FUSE::removexattr(const char *fusepath_,
const char *attrname_)
{
Config::Read cfg;
if(Config::is_ctrl_file(fusepath_))
return -ENOATTR;
if(cfg->xattr.to_int())
return -cfg->xattr.to_int();
if(cfg.xattr.to_int())
return -cfg.xattr.to_int();
const fuse_context *fc = fuse_get_context();
const ugid::Set ugid(fc->uid,fc->gid);
return ::_removexattr(cfg->func.removexattr.policy,
cfg->func.getxattr.policy,
cfg->branches,
return ::_removexattr(cfg.func.removexattr.policy,
cfg.func.getxattr.policy,
cfg.branches,
fusepath_,
attrname_);
}