shithub: riscv

Download patch

ref: ad91dc7ffbfb14ba0ff07f59c20ead93bd106c35
parent: 7304deaec1ed27567dd6c55e245d9d5cc99686bb
author: cinap_lenrek <[email protected]>
date: Wed Aug 5 09:06:11 EDT 2015

cwfs: set permission of / to 0775 on ream

this allows members of the -1 group to create new directories in /
without having to fiddle with the fileserver console. this also
makes it consistent to hjfs.

--- a/sys/src/cmd/cwfs/sub.c
+++ b/sys/src/cmd/cwfs/sub.c
@@ -721,10 +721,7 @@
 	strcpy(d->name, "/");
 	d->uid = -1;
 	d->gid = -1;
-	d->mode = DALLOC | DDIR |
-		((DREAD|DEXEC) << 6) |
-		((DREAD|DEXEC) << 3) |
-		((DREAD|DEXEC) << 0);
+	d->mode = DALLOC | DDIR | 0775;
 	d->qid = QID9P1(QPROOT|QPDIR,0);
 	d->atime = time(nil);
 	d->mtime = d->atime;