Browse Source

Bad fix to work with CIFS mount

pull/371/head
Rüdiger Gubler 8 years ago
parent
commit
61181e1001
  1. 3
      src/chown.cpp
  2. 4
      src/fs_clonepath.cpp

3
src/chown.cpp

@ -96,6 +96,7 @@ namespace mergerfs
uid_t uid, uid_t uid,
gid_t gid) gid_t gid)
{ {
/*
const fuse_context *fc = fuse_get_context(); const fuse_context *fc = fuse_get_context();
const Config &config = Config::get(fc); const Config &config = Config::get(fc);
const ugid::Set ugid(fc->uid,fc->gid); const ugid::Set ugid(fc->uid,fc->gid);
@ -107,6 +108,8 @@ namespace mergerfs
fusepath, fusepath,
uid, uid,
gid); gid);
*/
return 0;
} }
} }
} }

4
src/fs_clonepath.cpp

@ -97,8 +97,8 @@ namespace fs
return -1; return -1;
rv = fs::chown(topath,st); rv = fs::chown(topath,st);
if(rv == -1)
return -1;
//if(rv == -1)
// return -1;
rv = fs::utime(topath,st); rv = fs::utime(topath,st);
if(rv == -1) if(rv == -1)

Loading…
Cancel
Save