From 5f955423b736d56b5b741fbd1b853c83044aa0fe Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Mon, 10 Jan 2022 20:05:36 +0100 Subject: fusefrontend: fix -force_owner not affecting MKNOD Fixes https://github.com/rfjakob/gocryptfs/issues/629 --- internal/fusefrontend/node.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'internal') diff --git a/internal/fusefrontend/node.go b/internal/fusefrontend/node.go index 182cda5..ead77c9 100644 --- a/internal/fusefrontend/node.go +++ b/internal/fusefrontend/node.go @@ -277,7 +277,13 @@ func (n *Node) Mknod(ctx context.Context, name string, mode, rdev uint32, out *f errno = fs.ToErrno(err) return } + inode = n.newChild(ctx, st, out) + + if rn.args.ForceOwner != nil { + out.Owner = *rn.args.ForceOwner + } + return inode, 0 } -- cgit v1.2.3