diff options
author | cinap_lenrek <cinap_lenrek@localhost> | 2011-04-29 14:22:04 +0000 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@localhost> | 2011-04-29 14:22:04 +0000 |
commit | 9e0948ab2fb00467a6685f27290b216ef503df11 (patch) | |
tree | b5d89671e017644a43134cbf68c772feff287dac /sys/src/cmd/cwfs/config.c | |
parent | 840b3bf28aa0b38d78a400158d2b865bc22f42f4 (diff) |
cwfs: fix config mode
Diffstat (limited to 'sys/src/cmd/cwfs/config.c')
-rw-r--r-- | sys/src/cmd/cwfs/config.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/src/cmd/cwfs/config.c b/sys/src/cmd/cwfs/config.c index 6dcc6f4dc..ec9410749 100644 --- a/sys/src/cmd/cwfs/config.c +++ b/sys/src/cmd/cwfs/config.c @@ -440,9 +440,7 @@ mergeconf(Iobuf *p) if(service[0] == 0) strncpy(service, word, sizeof service); } else if(strcmp(word, "noauth") == 0){ - noauth = 1; } else if(strcmp(word, "readonly") == 0){ - readonly = 1; } else if(strcmp(word, "ipauth") == 0) /* obsolete */ cp = getwrd(word, cp); else if(astrcmp(word, "ip") == 0) /* obsolete */ @@ -980,15 +978,18 @@ arginit(void) } if(strcmp(word, "noattach") == 0) { noattach = !noattach; + print("attach is now %s\n", noattach ? "disallowed" : "allowed"); continue; } if(strcmp(word, "noauth") == 0) { noauth = !noauth; + print("auth is now %s\n", noauth ? "disabled" : "enabled"); f.modconf = 1; continue; } if(strcmp(word, "readonly") == 0) { readonly = !readonly; + print("filesystem is now %s\n", readonly ? "readonly" : "writable"); f.modconf = 1; continue; } |