ref: c41ae8774d519f6f63c3eee720a3af4023fb9fe6
parent: 1295099737b550bd319fa55aa9b392f0d3b5c4ef
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Thu Apr 11 09:45:11 EDT 2013
libauth: auth_chuid empty (from sources) instead of an "i/o count too small", detect a missing capability (empty, null string) before the write, and diagnose it as such.
--- a/sys/src/libauth/auth_chuid.c
+++ b/sys/src/libauth/auth_chuid.c
@@ -10,7 +10,7 @@
{int rv, fd;
- if(ai == nil || ai->cap == nil){+ if(ai == nil || ai->cap == nil || ai->cap[0] == 0){ werrstr("no capability");return -1;
}
--
⑨