git: 9front

Download patch

ref: fcacc2114d5b1e781e095796a210b67f1be34f6e
parent: b3a80d27885b0ae78a900cfa5f1e50db7bea85bf
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Tue Nov 27 17:07:34 EST 2012

reverting string "general purpose password" braindamage

--- a/sys/src/cmd/auth/changeuser.c
+++ b/sys/src/cmd/auth/changeuser.c
@@ -66,7 +66,7 @@
 		t = getexpiration(f->keys, u);
 		install(f->keys, u, key, t, newkey);
 		if(dosecret && setsecret(KEYDB, u, p9pass) == 0)
-			error("error writing Inferno/POP secret");
+			error("error writing Inferno/pop secret");
 		newbio = querybio(f->who, u, &a);
 		if(newbio)
 			wrbio(f->who, &a);
--- a/sys/src/cmd/auth/passwd.c
+++ b/sys/src/cmd/auth/passwd.c
@@ -105,10 +105,10 @@
 				continue;
 			}
 		}
-		readln("Change general-purpose password?\n(for Inferno, POP, VNC, Telnet and others) (y/n) ", buf, sizeof buf, 0);
+		readln("change Inferno/POP password? (y/n) ", buf, sizeof buf, 0);
 		if(*buf == 'y' || *buf == 'Y'){
 			pr.changesecret = 1;
-			readln("Make it the same as your plan 9 password? (y/n) ",
+			readln("make it the same as your plan 9 password? (y/n) ",
 				buf, sizeof buf, 0);
 			if(*buf == 'y' || *buf == 'Y'){
 				if(*pr.new == 0)
--