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.
This commit is contained in:
parent
5796736b70
commit
b8397a3c2c
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ auth_chuid(AuthInfo *ai, char *ns)
|
||||||
{
|
{
|
||||||
int rv, fd;
|
int rv, fd;
|
||||||
|
|
||||||
if(ai == nil || ai->cap == nil){
|
if(ai == nil || ai->cap == nil || ai->cap[0] == 0){
|
||||||
werrstr("no capability");
|
werrstr("no capability");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue