diff options
author | Charles Duffy | 2017-06-09 14:37:30 -0500 |
---|---|---|
committer | rfjakob | 2017-06-09 22:04:56 +0200 |
commit | da1bd742461e397abefc814bb0c0a21a6d8ec3d6 (patch) | |
tree | ca6be2786eeebed12158f917c9fdbec697bc0172 /internal/fusefrontend | |
parent | d2be22a07f32d5c41223419314c9fb6b8ad2ab42 (diff) |
Fix missing Owner coercion for already-open files (#117)
Diffstat (limited to 'internal/fusefrontend')
-rw-r--r-- | internal/fusefrontend/file.go | 3 |
1 files changed, 3 insertions, 0 deletions
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 } |