mirror of https://github.com/0intro/wmii
adding DMWRITE flag to /keys and /class because you are permitted to create files inside those directories
This commit is contained in:
parent
40b37a7fba
commit
cc54c92724
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue