shithub: riscv

Download patch

ref: 78c7ba36a1a732c08fbb7e4f8b19d1bc825c5b7e
parent: b699f9664bc1ec5fae389b7ddbc6451a6ea50d33
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Tue Apr 23 22:41:36 EDT 2013

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

--- a/sys/src/cmd/cpu.c
+++ b/sys/src/cmd/cpu.c
@@ -327,7 +327,7 @@
 	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
 remoteside(int old)
 {
@@ -352,7 +352,7 @@
 	}
 	if(setamalg(cmd) < 0){
 		writestr(fd, "unsupported auth method", nil, 0);
-		fatal("bad auth method %s: %r", cmd);
+		fatal("bad auth method %s", cmd);
 	} else
 		writestr(fd, "", "", 1);
 
--