diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-12-07 06:30:26 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-12-07 06:30:26 +0100 |
commit | 52b500af6185068233ff021b2160463192f69ef0 (patch) | |
tree | 9b814505c911590988910f4af3273362b3e4d154 /sys/src/cmd/cwfs/con.c | |
parent | 3bf1e0798b9d002801d5af114052474f08aa1c64 (diff) |
cwfs: make none attach work
allow attach as none. (this was supposed to work but it
doesnt for 9p2000 because we have to check for
afid being NOFID instead of checking the uname string).
and add "nonone" flag to disable this.
Diffstat (limited to 'sys/src/cmd/cwfs/con.c')
-rw-r--r-- | sys/src/cmd/cwfs/con.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/src/cmd/cwfs/con.c b/sys/src/cmd/cwfs/con.c index 201e4ac7e..00fadf6bb 100644 --- a/sys/src/cmd/cwfs/con.c +++ b/sys/src/cmd/cwfs/con.c @@ -694,6 +694,13 @@ cmd_noauth(int, char *[]) } void +cmd_nonone(int, char *[]) +{ + nonone = !nonone; + print("none %s\n", nonone ? "disabled" : "enabled"); +} + +void cmd_noattach(int, char *[]) { noattach = !noattach; @@ -767,6 +774,7 @@ installcmds(void) cmd_install("hangup", "chan -- clunk files", cmd_hangup); cmd_install("printconf", "-- print configuration", cmd_printconf); cmd_install("noauth", "toggle noauth flag", cmd_noauth); + cmd_install("nonone", "toggle nonone flag", cmd_nonone); cmd_install("noattach", "toggle noattach flag", cmd_noattach); cmd_install("files", "report on files structure", cmd_files); |