aboutsummaryrefslogtreecommitdiff
path: root/weed/command
diff options
context:
space:
mode:
authorhilimd <68371223+hilimd@users.noreply.github.com>2020-09-23 17:32:05 +0800
committerGitHub <noreply@github.com>2020-09-23 17:32:05 +0800
commit0db149fb5f73694866c5f09d29f4ffae8bacad51 (patch)
tree37bb9cee8e6d2ded3c6e79e7719efca5ea52be28 /weed/command
parentd506080c36297f5b9320a292e5f9e0896bd3bccb (diff)
parentf7a0ccb595edb51498aeb61aa0e09ac93228b007 (diff)
downloadseaweedfs-0db149fb5f73694866c5f09d29f4ffae8bacad51.tar.xz
seaweedfs-0db149fb5f73694866c5f09d29f4ffae8bacad51.zip
Merge pull request #18 from chrislusf/master
sync
Diffstat (limited to 'weed/command')
-rw-r--r--weed/command/mount_std.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/command/mount_std.go b/weed/command/mount_std.go
index 44e945f23..3947a871a 100644
--- a/weed/command/mount_std.go
+++ b/weed/command/mount_std.go
@@ -91,7 +91,7 @@ func RunMount(option *MountOptions, umask os.FileMode) bool {
// detect mount folder mode
if *option.dirAutoCreate {
- os.MkdirAll(dir, 0755)
+ os.MkdirAll(dir, os.FileMode(0777) &^ umask)
}
mountMode := os.ModeDir | 0755
fileInfo, err := os.Stat(dir)