Fix missing Owner coercion for already-open files (#117)

This commit is contained in:
Charles Duffy 2017-06-09 14:37:30 -05:00 committed by rfjakob
parent d2be22a07f
commit da1bd74246

View File

@ -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
}