mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
fix file permission during writes
This commit is contained in:
parent
dd37f0540f
commit
747377142b
|
@ -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…
Reference in a new issue