From 61181e10015f502966472267aba23e3b09784aba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BCdiger=20Gubler?= Date: Fri, 10 Feb 2017 21:32:27 +0100 Subject: [PATCH] Bad fix to work with CIFS mount --- src/chown.cpp | 3 +++ src/fs_clonepath.cpp | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/chown.cpp b/src/chown.cpp index 2c15ffc1..e2df0259 100644 --- a/src/chown.cpp +++ b/src/chown.cpp @@ -96,6 +96,7 @@ namespace mergerfs uid_t uid, gid_t gid) { +/* const fuse_context *fc = fuse_get_context(); const Config &config = Config::get(fc); const ugid::Set ugid(fc->uid,fc->gid); @@ -107,6 +108,8 @@ namespace mergerfs fusepath, uid, gid); +*/ + return 0; } } } diff --git a/src/fs_clonepath.cpp b/src/fs_clonepath.cpp index c81e6432..dcfae384 100644 --- a/src/fs_clonepath.cpp +++ b/src/fs_clonepath.cpp @@ -97,8 +97,8 @@ namespace fs return -1; rv = fs::chown(topath,st); - if(rv == -1) - return -1; + //if(rv == -1) + // return -1; rv = fs::utime(topath,st); if(rv == -1)