aboutsummaryrefslogtreecommitdiff
path: root/internal/fusefrontend_reverse/node.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2024-08-23 22:32:46 +0200
committerJakob Unterwurzacher2024-08-23 22:32:46 +0200
commitf665be1178c72a4768e82bccdfa073a0cf309215 (patch)
tree8793581fe7ccbd381e8e77dabf047af104fc7ff1 /internal/fusefrontend_reverse/node.go
parent1db3808654187b57c8fbb52ab9ef46b7ddf90951 (diff)
reverse: fix force_owner
Fixes https://github.com/rfjakob/gocryptfs/issues/809
Diffstat (limited to 'internal/fusefrontend_reverse/node.go')
-rw-r--r--internal/fusefrontend_reverse/node.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/fusefrontend_reverse/node.go b/internal/fusefrontend_reverse/node.go
index 22ad975..30654e0 100644
--- a/internal/fusefrontend_reverse/node.go
+++ b/internal/fusefrontend_reverse/node.go
@@ -69,6 +69,10 @@ func (n *Node) Lookup(ctx context.Context, cName string, out *fuse.EntryOut) (ch
n.translateSize(d.dirfd, cName, d.pName, &out.Attr)
}
+ if rn.args.ForceOwner != nil {
+ out.Owner = *rn.args.ForceOwner
+ }
+
// Usually we always create a new Node ID by always incrementing the generation
// number.
//