git: 9front

Download patch

ref: 2bea5d7ef33f737527fbac11bb5a94d1840c330a
parent: b77633f6d015c049a0ca93034a9d6342c541abb6
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;
--