summaryrefslogtreecommitdiff
path: root/sys/src/cmd/cwfs/all.h
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2022-12-18 13:45:31 +0000
committercinap_lenrek <cinap_lenrek@felloff.net>2022-12-18 13:45:31 +0000
commite0372c26e9263207fb9ede2b8d706e4f8cd24b7a (patch)
tree011914beff271ee531f792d669ec63d97ccdcf55 /sys/src/cmd/cwfs/all.h
parent0f0270cdd612d6bc7f065b5c25c4cfffc2c0bd87 (diff)
cwfs: remove noauth and nonone commans from fileserver console
The noauth and nonone commands are only valid in config mode. The problem is that some people assumed that issuing the noauth command in the runtime fileserver console would be persistent across reboots, which is not the case. To avoid this confusion, we remove these commands from the fileserver console. To still give a way to disable authentication at runtime, define a authdisabled flag that can be toggled at runtime.
Diffstat (limited to 'sys/src/cmd/cwfs/all.h')
-rw-r--r--sys/src/cmd/cwfs/all.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/src/cmd/cwfs/all.h b/sys/src/cmd/cwfs/all.h
index 900113fbd..783781021 100644
--- a/sys/src/cmd/cwfs/all.h
+++ b/sys/src/cmd/cwfs/all.h
@@ -74,8 +74,10 @@ ulong roflag;
ulong errorflag;
ulong chatflag;
ulong authdebugflag;
+ulong authdisableflag;
+
int noattach; /* attach is disabled */
-int noauth; /* auth is disable */
+int noauth; /* auth is disabled */
int nonone; /* attach as none disabled */
int noatime; /* atime is disabled */
int noatimeset; /* noatime was changed (reset after dump) */