adding DMWRITE flag to /keys and /class because you are permitted to create files inside those directories

This commit is contained in:
Anselm R. Garbe 2006-03-08 22:46:45 +01:00
parent 40b37a7fba
commit cc54c92724
1 changed files with 4 additions and 2 deletions

View File

@ -531,8 +531,6 @@ type2stat(Stat *stat, char *wname, Qid *dir)
case FsDarea:
case FsDws:
case FsDdef:
case FsDkeys:
case FsDclass:
case FsDtags:
case FsDclients:
case FsDbar:
@ -540,6 +538,10 @@ type2stat(Stat *stat, char *wname, Qid *dir)
case FsDroot:
return mkstat(stat, dir, wname, 0, DMDIR | DMREAD | DMEXEC);
break;
case FsDkeys:
case FsDclass:
return mkstat(stat, dir, wname, 0, DMDIR | DMREAD | DMWRITE | DMEXEC);
break;
case FsFctl:
return mkstat(stat, dir, wname, 0, DMWRITE);
break;