diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-04-10 02:23:23 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-04-10 02:23:23 -0700 |
| commit | 13ab1fdaf0a4c67786d53760e8b9e6a81c35a04f (patch) | |
| tree | 5749ae0286c8b962b18040993c69db6fed01bb72 /weed | |
| parent | 1101a42e5cb4f12d218023669ec57b8cbfb542e0 (diff) | |
| download | seaweedfs-13ab1fdaf0a4c67786d53760e8b9e6a81c35a04f.tar.xz seaweedfs-13ab1fdaf0a4c67786d53760e8b9e6a81c35a04f.zip | |
mount: use file default permission 0666
Diffstat (limited to 'weed')
| -rw-r--r-- | weed/filesys/filehandle.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |
