ref: 2774f7c4733f4f1fe6c49f300943d4f1579def46
parent: 15450aaf275427707be1c27a7cf8ece53a136014
author: Michael Forney <mforney@mforney.org>
date: Wed Mar 9 05:55:18 EST 2022
fs: fix gid of new files This should be the gid of the directory we are creating the file in, not the gid of that directory's parent.
--- a/fs.c
+++ b/fs.c
@@ -1117,6 +1117,7 @@
putfid(f);
return;
}
+ d.gid = de->gid;
runlock(de);
nm = 0;
@@ -1141,7 +1142,6 @@
d.mtime = d.atime;
d.length = 0;
d.uid = f->uid;
- d.gid = f->dgid;
d.muid = f->uid;
mb[nm].op = Oinsert;