diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-04-11 13:45:11 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-04-11 13:45:11 +0200 |
commit | b8397a3c2c1603b37a6f4385b70d022f60489625 (patch) | |
tree | 24b0b9fdff54596485270e2bfed392d41bca76e1 /sys/src/libauth | |
parent | 5796736b708701ad7f7275d3603fbe24faa63a2c (diff) |
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.
Diffstat (limited to 'sys/src/libauth')
-rw-r--r-- | sys/src/libauth/auth_chuid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/libauth/auth_chuid.c b/sys/src/libauth/auth_chuid.c index 1bfbfff92..7ba0cfc6d 100644 --- a/sys/src/libauth/auth_chuid.c +++ b/sys/src/libauth/auth_chuid.c @@ -10,7 +10,7 @@ auth_chuid(AuthInfo *ai, char *ns) { int rv, fd; - if(ai == nil || ai->cap == nil){ + if(ai == nil || ai->cap == nil || ai->cap[0] == 0){ werrstr("no capability"); return -1; } |