From f0e325b6fce66f2e41f148ea0dde2774056f616f Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Wed, 23 Sep 2020 02:27:57 -0700 Subject: [PATCH] mount: auto created directory follow umask --- weed/filesys/wfs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/filesys/wfs.go b/weed/filesys/wfs.go index 8d46e0862..0335d5d98 100644 --- a/weed/filesys/wfs.go +++ b/weed/filesys/wfs.go @@ -88,7 +88,7 @@ func NewSeaweedFileSystem(option *Option) *WFS { cacheUniqueId := util.Md5String([]byte(option.FilerGrpcAddress + option.FilerMountRootPath + util.Version()))[0:4] cacheDir := path.Join(option.CacheDir, cacheUniqueId) if option.CacheSizeMB > 0 { - os.MkdirAll(cacheDir, 0755) + os.MkdirAll(cacheDir, os.FileMode(0777) &^ option.Umask) wfs.chunkCache = chunk_cache.NewTieredChunkCache(256, cacheDir, option.CacheSizeMB) }