From 747377142b5fd3ee98c9ea0742e0f6abdd1512f9 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Fri, 7 Sep 2018 13:57:06 -0700 Subject: [PATCH] fix file permission during writes --- weed/filesys/filehandle.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/weed/filesys/filehandle.go b/weed/filesys/filehandle.go index 192bf6d52..786abbef2 100644 --- a/weed/filesys/filehandle.go +++ b/weed/filesys/filehandle.go @@ -201,6 +201,8 @@ func (fh *FileHandle) Flush(ctx context.Context, req *fuse.FlushRequest) error { if fh.f.attributes != nil { fh.f.attributes.Mime = fh.contentType + fh.f.attributes.Uid = req.Uid + fh.f.attributes.Gid = req.Gid } request := &filer_pb.UpdateEntryRequest{