diff options
| author | Charles.Forsyth <devnull@localhost> | 2007-06-01 10:45:32 +0000 |
|---|---|---|
| committer | Charles.Forsyth <devnull@localhost> | 2007-06-01 10:45:32 +0000 |
| commit | 309cc03618e34c9a5ddf367fc14e57097285dc8e (patch) | |
| tree | 8e30385304dd31ff1cc553426a0a089673f1dd7b /appl/cmd | |
| parent | dd7f661c1e9a0167d1d500b21866f267efa8dc5f (diff) | |
20070601-1143
Diffstat (limited to 'appl/cmd')
| -rw-r--r-- | appl/cmd/auth/factotum/factotum.b | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/appl/cmd/auth/factotum/factotum.b b/appl/cmd/auth/factotum/factotum.b index 5f5b02a3..07169747 100644 --- a/appl/cmd/auth/factotum/factotum.b +++ b/appl/cmd/auth/factotum/factotum.b @@ -133,11 +133,11 @@ factotumsrv() wc <-= (0, "multiline write not allowed"); break; } - s := hd flds; - if(s == nil || s[0] == '#'){ + if(flds == nil || (hd flds)[0] == '#'){ wc <-= (len data, nil); break; } + s := hd flds; for(i := 0; i < len s && s[i] != ' '; i++){ # skip } @@ -174,7 +174,7 @@ factotumsrv() "debug" => wc <-= (len data, nil); * => - wc <-= (0, "unknown ctl request"); + wc <-= (0, "unknown verb"); } (nil, nbytes, fid, rc) := <-files.rpc.read => @@ -182,7 +182,7 @@ factotumsrv() break; r := findfid(fid); if(r == nil){ - rc <-= (nil, "unknown request"); + rc <-= (nil, "no rpc pending"); break; } alt{ |
