From 7b47a1e842a4c8b384ff5abd0a717083c4ad2bf8 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Mon, 8 May 2017 10:53:59 +0100 Subject: [PATCH] cmount: set the correct values for uid, gid under Windows --- cmd/cmount/mount.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/cmount/mount.go b/cmd/cmount/mount.go index ed2e5bf9c..c1d36a884 100644 --- a/cmd/cmount/mount.go +++ b/cmd/cmount/mount.go @@ -39,8 +39,8 @@ var ( writebackCache = false maxReadAhead fs.SizeSuffix = 128 * 1024 umask = 0 - uid = uint32(0) // set in mount_unix.go - gid = uint32(0) + uid = ^uint32(0) // these values instruct WinFSP-FUSE to use the current user + gid = ^uint32(0) // overriden for non windows in mount_unix.go // foreground = false // default permissions for directories - modified by umask in Mount dirPerms = os.FileMode(0777)