diff options
author | Jakob Unterwurzacher | 2024-08-23 22:32:46 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2024-08-23 22:32:46 +0200 |
commit | f665be1178c72a4768e82bccdfa073a0cf309215 (patch) | |
tree | 8793581fe7ccbd381e8e77dabf047af104fc7ff1 /internal/fusefrontend_reverse/node_helpers.go | |
parent | 1db3808654187b57c8fbb52ab9ef46b7ddf90951 (diff) |
reverse: fix force_owner
Fixes https://github.com/rfjakob/gocryptfs/issues/809
Diffstat (limited to 'internal/fusefrontend_reverse/node_helpers.go')
-rw-r--r-- | internal/fusefrontend_reverse/node_helpers.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/fusefrontend_reverse/node_helpers.go b/internal/fusefrontend_reverse/node_helpers.go index 6bba097..30361bc 100644 --- a/internal/fusefrontend_reverse/node_helpers.go +++ b/internal/fusefrontend_reverse/node_helpers.go @@ -201,6 +201,9 @@ func (n *Node) lookupConf(ctx context.Context, out *fuse.EntryOut) (ch *fs.Inode // Get unique inode number rn.inoMap.TranslateStat(&st) out.Attr.FromStat(&st) + if rn.args.ForceOwner != nil { + out.Owner = *rn.args.ForceOwner + } // Create child node id := rn.uniqueStableAttr(uint32(st.Mode), st.Ino) node := &VirtualConfNode{path: p} |