From 309cc03618e34c9a5ddf367fc14e57097285dc8e Mon Sep 17 00:00:00 2001 From: "Charles.Forsyth" Date: Fri, 1 Jun 2007 10:45:32 +0000 Subject: 20070601-1143 --- appl/cmd/auth/factotum/factotum.b | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'appl/cmd/auth') 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{ -- cgit v1.2.3