passwd: improved message
This commit is contained in:
parent
0ef9131b08
commit
7e0c920fe3
2 changed files with 3 additions and 3 deletions
|
@ -66,7 +66,7 @@ main(int argc, char *argv[])
|
|||
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);
|
||||
|
|
|
@ -105,10 +105,10 @@ main(int argc, char **argv)
|
|||
continue;
|
||||
}
|
||||
}
|
||||
readln("change Inferno/POP password? (y/n) ", buf, sizeof buf, 0);
|
||||
readln("Change general-purpose password?\n(for Inferno, POP, VNC, Telnet and others) (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)
|
||||
|
|
Loading…
Reference in a new issue