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.
This commit is contained in:
cinap_lenrek 2015-08-05 13:13:40 +02:00
parent ad91dc7ffb
commit 00eb2fa448

View file

@ -583,10 +583,7 @@ rootream(Device dev, long addr)
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;