From cc54c92724dfc16c935f3162ef4beb13c45d879f Mon Sep 17 00:00:00 2001 From: "Anselm R. Garbe" Date: Wed, 8 Mar 2006 22:46:45 +0100 Subject: [PATCH] adding DMWRITE flag to /keys and /class because you are permitted to create files inside those directories --- cmd/wm/fs.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cmd/wm/fs.c b/cmd/wm/fs.c index 832ff62a..8574df1b 100644 --- a/cmd/wm/fs.c +++ b/cmd/wm/fs.c @@ -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;