shithub: riscv

Download patch

ref: 00eb2fa4487b39a5d5bcf1377a72bcb3391cb0bf
parent: ad91dc7ffbfb14ba0ff07f59c20ead93bd106c35
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Wed Aug 5 09:13:40 EDT 2015

kfs: 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 and cwfs.

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