mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
platform specific code to deal with sete{u,g}id. closes #17
This commit is contained in:
parent
716453596a
commit
0e12d79659
39 changed files with 323 additions and 131 deletions
|
|
@ -30,7 +30,6 @@
|
|||
#include <errno.h>
|
||||
|
||||
#include "config.hpp"
|
||||
#include "ugid.hpp"
|
||||
#include "fileinfo.hpp"
|
||||
|
||||
static
|
||||
|
|
@ -54,9 +53,8 @@ namespace mergerfs
|
|||
struct stat *st,
|
||||
struct fuse_file_info *ffi)
|
||||
{
|
||||
const ugid::SetResetGuard ugid;
|
||||
const config::Config &config = config::get();
|
||||
const FileInfo *fileinfo = (FileInfo*)ffi->fh;
|
||||
const config::Config &config = config::get();
|
||||
const FileInfo *fileinfo = (FileInfo*)ffi->fh;
|
||||
|
||||
if(fusepath == config.controlfile)
|
||||
return (*st = config.controlfilestat,0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue