From da1bd742461e397abefc814bb0c0a21a6d8ec3d6 Mon Sep 17 00:00:00 2001 From: Charles Duffy Date: Fri, 9 Jun 2017 14:37:30 -0500 Subject: Fix missing Owner coercion for already-open files (#117) --- internal/fusefrontend/file.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'internal/fusefrontend') diff --git a/internal/fusefrontend/file.go b/internal/fusefrontend/file.go index ca1798b..5b0a254 100644 --- a/internal/fusefrontend/file.go +++ b/internal/fusefrontend/file.go @@ -427,6 +427,9 @@ func (f *file) GetAttr(a *fuse.Attr) fuse.Status { } a.FromStat(&st) a.Size = f.contentEnc.CipherSizeToPlainSize(a.Size) + if f.fs.args.ForceOwner != nil { + a.Owner = *f.fs.args.ForceOwner + } return fuse.OK } -- cgit v1.2.3