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

View file

@ -721,10 +721,7 @@ rootream(Device *dev, Off addr)
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;