From 0aaaa9b470155401be55e8cb5c26d8d9af0cd85d Mon Sep 17 00:00:00 2001 From: Daniel Santos Date: Tue, 26 Jan 2021 21:06:08 -0700 Subject: [PATCH] Fix var assignment --- weed/command/mount_std.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/command/mount_std.go b/weed/command/mount_std.go index fe9ba28c4..8119edd01 100644 --- a/weed/command/mount_std.go +++ b/weed/command/mount_std.go @@ -100,7 +100,7 @@ func RunMount(option *MountOptions, umask os.FileMode) bool { uid, gid := uint32(0), uint32(0) mountMode := os.ModeDir | 0777 if err == nil { - mountMode := os.ModeDir | os.FileMode(0777)&^umask + mountMode = os.ModeDir | os.FileMode(0777)&^umask uid, gid = util.GetFileUidGid(fileInfo) fmt.Printf("mount point owner uid=%d gid=%d mode=%s\n", uid, gid, fileInfo.Mode()) } else {