summaryrefslogtreecommitdiff
path: root/internal/fusefrontend
diff options
context:
space:
mode:
authorJakob Unterwurzacher2022-01-10 20:05:36 +0100
committerJakob Unterwurzacher2022-01-10 20:05:36 +0100
commit5f955423b736d56b5b741fbd1b853c83044aa0fe (patch)
treee0a74b15deb5c99c7e1984b7cf13f1d17598e91b /internal/fusefrontend
parentc23a7f225984af1aa9fd0113f93be837a13d9b08 (diff)
fusefrontend: fix -force_owner not affecting MKNOD
Fixes https://github.com/rfjakob/gocryptfs/issues/629
Diffstat (limited to 'internal/fusefrontend')
-rw-r--r--internal/fusefrontend/node.go6
1 files changed, 6 insertions, 0 deletions
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
}