ref: 6756c09c6110f6601c65f48fdfc375bbe52f93ce
parent: a9b58ffc013624e9a314316d2354fe4b52f9919c
author: Michael Forney <mforney@mforney.org>
date: Wed Apr 20 17:30:21 EDT 2022
fs: fix duid of root fid Using the attaching user as the duid allows any user to remove or rename the fs root.
--- a/fs.c
+++ b/fs.c
@@ -853,7 +853,7 @@
f.iounit = m->conn->iounit;
f.dent = de;
f.uid = uid;
- f.duid = uid;
+ f.duid = d.uid;
f.dgid = d.gid;
f.dmode = d.mode;
if(dupfid(m->conn, m->fid, &f) == nil){