]> git.lizzy.rs Git - plan9front.git/commitdiff
cwfs: back to previous version
authorcinap_lenrek <cinap_lenrek@localhost>
Fri, 29 Apr 2011 14:45:17 +0000 (14:45 +0000)
committercinap_lenrek <cinap_lenrek@localhost>
Fri, 29 Apr 2011 14:45:17 +0000 (14:45 +0000)
sys/src/cmd/cwfs/config.c

index ec9410749c89a88f74cff400a0354b15b6017c1c..6dcc6f4dc875e467d6c75006ec8c382085270c99 100644 (file)
@@ -440,7 +440,9 @@ 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 */
@@ -978,18 +980,15 @@ 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;
                }