Browse Source

fix file permission during writes

pull/747/head
Chris Lu 6 years ago
parent
commit
747377142b
  1. 2
      weed/filesys/filehandle.go

2
weed/filesys/filehandle.go

@ -201,6 +201,8 @@ func (fh *FileHandle) Flush(ctx context.Context, req *fuse.FlushRequest) error {
if fh.f.attributes != nil { if fh.f.attributes != nil {
fh.f.attributes.Mime = fh.contentType fh.f.attributes.Mime = fh.contentType
fh.f.attributes.Uid = req.Uid
fh.f.attributes.Gid = req.Gid
} }
request := &filer_pb.UpdateEntryRequest{ request := &filer_pb.UpdateEntryRequest{

Loading…
Cancel
Save