summaryrefslogtreecommitdiff
path: root/internal/fusefrontend/fs.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2016-11-28 22:46:04 +0100
committerJakob Unterwurzacher2016-11-28 22:46:04 +0100
commita66440c66816c919acfaa4cd079fe2fae7043294 (patch)
treea59e9fbb412fecc5548e546548ea72035847adbb /internal/fusefrontend/fs.go
parent7fc93ec0937d925941107a0d05341b6da8540d05 (diff)
fusefrontend: use Lchown when preserving owner
This prevents (unlikely) symlink race attacks
Diffstat (limited to 'internal/fusefrontend/fs.go')
-rw-r--r--internal/fusefrontend/fs.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/fusefrontend/fs.go b/internal/fusefrontend/fs.go
index f41e9a7..261d690 100644
--- a/internal/fusefrontend/fs.go
+++ b/internal/fusefrontend/fs.go
@@ -157,7 +157,7 @@ func (fs *FS) Create(path string, flags uint32, mode uint32, context *fuse.Conte
if fs.args.PreserveOwner {
err = fd.Chown(int(context.Owner.Uid), int(context.Owner.Gid))
if err != nil {
- tlog.Warn.Printf("Create: Chown failed: %v", err)
+ tlog.Warn.Printf("Create: fd.Chown failed: %v", err)
}
}
return NewFile(fd, writeOnly, fs)