mirror of
https://github.com/trapexit/mergerfs.git
synced 2025-06-10 13:28:31 +08:00
platform specific code to deal with sete{u,g}id. closes #17
This commit is contained in:
@ -76,8 +76,9 @@ namespace mergerfs
|
||||
truncate(const char *fusepath,
|
||||
off_t size)
|
||||
{
|
||||
const ugid::SetResetGuard uid;
|
||||
const struct fuse_context *fc = fuse_get_context();
|
||||
const config::Config &config = config::get();
|
||||
const ugid::SetResetGuard ugid(fc->uid,fc->gid);
|
||||
|
||||
if(fusepath == config.controlfile)
|
||||
return -EPERM;
|
||||
|
Reference in New Issue
Block a user