shithub: drawterm-fdroid

Download patch

ref: 7732ac0a9b2e8f6c07945bfb8a99bd80f8f028ed
parent: 43b112897a64086ff0cf834c8dbe8281229a402c
author: Russ Cox <rsc@swtch.com>
date: Mon Nov 7 10:13:16 EST 2005

check env for $authserver

--- a/cpu.c
+++ b/cpu.c
@@ -181,6 +181,13 @@
 			fatal(0, "set $cpu");
 		system = p;
 	}
+	
+	if(authserver == nil) {
+		p = getenv("auth");
+		if(p == 0)
+			fatal(0, "set $auth");
+		authserver = p;
+	}
 
 	if(err = rexcall(&data, system, srvname))
 		fatal(1, "%s: %s", err, system);