shithub: riscv

Download patch

ref: ea480e74bbd559e448c1c8afc3f2abe6888351a4
parent: 20883bd7de7097936fe87e5fce4d08033ea6c88c
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat May 24 15:49:54 EDT 2014

libauth: dont print blobs in auth_proxy error strings

--- a/sys/src/libauth/auth_proxy.c
+++ b/sys/src/libauth/auth_proxy.c
@@ -163,14 +163,15 @@
 				m = read(fd, buf + n, m - n);
 				if(m <= 0){
 					if(m == 0)
-						werrstr("auth_proxy short read: %s",
-							buf);
+						werrstr("auth_proxy short read");
+					else
+						werrstr("auth_proxy read fd: %r");
 					goto Error;
 				}
 				n += m;
 			}
 			if(ret != ARok){
-				werrstr("auth_proxy rpc write: %s: %r", buf);
+				werrstr("auth_proxy rpc write: %r");
 				goto Error;
 			}
 			break;