Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

mount: auto created dir set corrct umask

Chris Luf7a0ccb595ed
diff --git a/weed/command/mount_std.go b/weed/command/mount_std.go
index 44e945f238..3947a871ad 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)