From 13ab1fdaf0a4c67786d53760e8b9e6a81c35a04f Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Fri, 10 Apr 2020 02:23:23 -0700 Subject: [PATCH] mount: use file default permission 0666 --- weed/filesys/filehandle.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/filesys/filehandle.go b/weed/filesys/filehandle.go index 8b1be5209..935f0b314 100644 --- a/weed/filesys/filehandle.go +++ b/weed/filesys/filehandle.go @@ -193,7 +193,7 @@ func (fh *FileHandle) Flush(ctx context.Context, req *fuse.FlushRequest) error { fh.f.entry.Attributes.Gid = req.Gid fh.f.entry.Attributes.Mtime = time.Now().Unix() fh.f.entry.Attributes.Crtime = time.Now().Unix() - fh.f.entry.Attributes.FileMode = uint32(0777 &^ fh.f.wfs.option.Umask) + fh.f.entry.Attributes.FileMode = uint32(0666 &^ fh.f.wfs.option.Umask) fh.f.entry.Attributes.Collection = fh.dirtyPages.collection fh.f.entry.Attributes.Replication = fh.dirtyPages.replication }