summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorCharles Duffy2017-06-09 14:37:30 -0500
committerrfjakob2017-06-09 22:04:56 +0200
commitda1bd742461e397abefc814bb0c0a21a6d8ec3d6 (patch)
treeca6be2786eeebed12158f917c9fdbec697bc0172 /internal
parentd2be22a07f32d5c41223419314c9fb6b8ad2ab42 (diff)
Fix missing Owner coercion for already-open files (#117)
Diffstat (limited to 'internal')
-rw-r--r--internal/fusefrontend/file.go3
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
}