diff options
author | Jakob Unterwurzacher | 2016-06-26 19:18:13 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2016-06-26 19:18:13 +0200 |
commit | 23cc0657f43c21a4f249594a5dcc660b2d5fb77a (patch) | |
tree | 1c98faa5188adcbc05d2ff573842fbac295308f5 /internal/fusefrontend/args.go | |
parent | 38767ab5278f6fe62dcf70fc151e8a56cfffcfe4 (diff) |
fusefronted: preserve owner if running as root
If allow_other is set and we run as root, try to give newly created files to
the right user.
Diffstat (limited to 'internal/fusefrontend/args.go')
-rw-r--r-- | internal/fusefrontend/args.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/fusefrontend/args.go b/internal/fusefrontend/args.go index b3fa665..78b9b5b 100644 --- a/internal/fusefrontend/args.go +++ b/internal/fusefrontend/args.go @@ -7,4 +7,7 @@ type Args struct { OpenSSL bool PlaintextNames bool LongNames bool + // Should we chown a file after it has been created? + // This only makes sense if (1) allow_other is set and (2) we run as root. + PreserveOwner bool } |