shithub: riscv

Download patch

ref: 1e31b342cd913bb702bd12debd8e0d44bf1d221c
parent: 2647aef1757e41fb7f0544a6f1ab78ee928e17d9
parent: b8397a3c2c1603b37a6f4385b70d022f60489625
author: cinap_lenrek <[email protected]>
date: Thu Apr 11 15:34:43 EDT 2013

merge

--- 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;
 	}