cwfs: back to previous version
This commit is contained in:
parent
9e0948ab2f
commit
06db9d4d68
1 changed files with 2 additions and 3 deletions
|
@ -440,7 +440,9 @@ mergeconf(Iobuf *p)
|
||||||
if(service[0] == 0)
|
if(service[0] == 0)
|
||||||
strncpy(service, word, sizeof service);
|
strncpy(service, word, sizeof service);
|
||||||
} else if(strcmp(word, "noauth") == 0){
|
} else if(strcmp(word, "noauth") == 0){
|
||||||
|
noauth = 1;
|
||||||
} else if(strcmp(word, "readonly") == 0){
|
} else if(strcmp(word, "readonly") == 0){
|
||||||
|
readonly = 1;
|
||||||
} else if(strcmp(word, "ipauth") == 0) /* obsolete */
|
} else if(strcmp(word, "ipauth") == 0) /* obsolete */
|
||||||
cp = getwrd(word, cp);
|
cp = getwrd(word, cp);
|
||||||
else if(astrcmp(word, "ip") == 0) /* obsolete */
|
else if(astrcmp(word, "ip") == 0) /* obsolete */
|
||||||
|
@ -978,18 +980,15 @@ arginit(void)
|
||||||
}
|
}
|
||||||
if(strcmp(word, "noattach") == 0) {
|
if(strcmp(word, "noattach") == 0) {
|
||||||
noattach = !noattach;
|
noattach = !noattach;
|
||||||
print("attach is now %s\n", noattach ? "disallowed" : "allowed");
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if(strcmp(word, "noauth") == 0) {
|
if(strcmp(word, "noauth") == 0) {
|
||||||
noauth = !noauth;
|
noauth = !noauth;
|
||||||
print("auth is now %s\n", noauth ? "disabled" : "enabled");
|
|
||||||
f.modconf = 1;
|
f.modconf = 1;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if(strcmp(word, "readonly") == 0) {
|
if(strcmp(word, "readonly") == 0) {
|
||||||
readonly = !readonly;
|
readonly = !readonly;
|
||||||
print("filesystem is now %s\n", readonly ? "readonly" : "writable");
|
|
||||||
f.modconf = 1;
|
f.modconf = 1;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue