shithub: drawterm

Download patch

ref: c0bdcc5a8543e1da29aa3fa584e6b8b7b27e1d5d
parent: 01028c1dd99ddce82c70ce1e789037ffbce9e8a6
parent: 68fe504f349dd77566041e69f6b2534ec57707e0
author: cinap_lenrek <[email protected]>
date: Sat Feb 20 19:32:39 EST 2016

merge

--- a/cpu.c
+++ b/cpu.c
@@ -152,11 +152,7 @@
 	user = getenv("USER");
 	secstoreserver = nil;
 	authserver = getenv("auth");
-	if(authserver == nil)
-		authserver = "auth";
 	system = getenv("cpu");
-	if(system == nil)
-		system = "cpu";
 	ARGBEGIN{
 	case 'a':
 		authserver = EARGF(usage());
@@ -200,8 +196,14 @@
 	if(argc != 0)
 		usage();
 
+	if(system == nil)
+		system = readcons("cpuserver", "cpu", 0);
+
 	if(user == nil)
-		user = readcons("user", nil, 0);
+		user = readcons("user", "glenda", 0);
+
+	if(authserver == nil)
+		authserver = readcons("authserver", system, 0);
 
 	if(mountfactotum() < 0){
 		if(secstoreserver == nil)