ref: c0ef3079cfa0a2502c66e5b74863747324d7f8d4
parent: 36125af017d7aa9ba20bf833efc49cdf7a876782
author: cinap_lenrek <cinap_lenrek@localhost>
date: Fri Apr 29 10:22:04 EDT 2011
cwfs: fix config mode
--- a/sys/src/cmd/cwfs/config.c
+++ b/sys/src/cmd/cwfs/config.c
@@ -440,9 +440,7 @@
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 @@
}
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;
}
--
⑨