cpu: don't print spurious errstr for bad auth method, fix comment

This commit is contained in:
cinap_lenrek 2013-04-24 02:41:36 +02:00
parent b699f9664b
commit 78c7ba36a1

View file

@ -327,7 +327,7 @@ old9p(int fd)
return p[1]; return p[1];
} }
/* Invoked with stdin, stdout and stderr connected to the network connection */ /* Invoked with stdin and stdout connected to the network connection */
void void
remoteside(int old) remoteside(int old)
{ {
@ -352,7 +352,7 @@ remoteside(int old)
} }
if(setamalg(cmd) < 0){ if(setamalg(cmd) < 0){
writestr(fd, "unsupported auth method", nil, 0); writestr(fd, "unsupported auth method", nil, 0);
fatal("bad auth method %s: %r", cmd); fatal("bad auth method %s", cmd);
} else } else
writestr(fd, "", "", 1); writestr(fd, "", "", 1);