mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
Rework how fuse request context is handled (#1543)
This commit is contained in:
parent
d18c273293
commit
0371f03def
117 changed files with 1894 additions and 2438 deletions
|
|
@ -123,9 +123,10 @@ _listxattr(const Policy::Search &searchFunc_,
|
|||
}
|
||||
|
||||
int
|
||||
FUSE::listxattr(const char *fusepath_,
|
||||
char *list_,
|
||||
size_t size_)
|
||||
FUSE::listxattr(const fuse_req_ctx_t *ctx_,
|
||||
const char *fusepath_,
|
||||
char *list_,
|
||||
size_t size_)
|
||||
{
|
||||
const fs::path fusepath{fusepath_};
|
||||
|
||||
|
|
@ -142,8 +143,7 @@ FUSE::listxattr(const char *fusepath_,
|
|||
return -ENOSYS;
|
||||
}
|
||||
|
||||
const fuse_context *fc = fuse_get_context();
|
||||
const ugid::Set ugid(fc->uid,fc->gid);
|
||||
const ugid::Set ugid(ctx_);
|
||||
|
||||
return ::_listxattr(cfg.func.listxattr.policy,
|
||||
cfg.branches,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue