mirror of
https://github.com/chrislusf/seaweedfs
synced 2024-09-12 20:10:41 +02:00
mount: auto created dir set corrct umask
This commit is contained in:
parent
f0e325b6fc
commit
f7a0ccb595
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue