mirror of https://github.com/0intro/conterm
delay user prompt until after -u is parsed (Randall Bohn)
This commit is contained in:
parent
b012e1ab6a
commit
189f67ae9b
7
cpu.c
7
cpu.c
|
@ -111,9 +111,7 @@ cpumain(int argc, char **argv)
|
|||
close(fd);
|
||||
}
|
||||
|
||||
user = getenv("USER");
|
||||
if(user == nil)
|
||||
user = readcons("user", nil, 0);
|
||||
user = getenv("USER");
|
||||
secstoreserver = nil;
|
||||
authserver = getenv("auth");
|
||||
if(authserver == nil)
|
||||
|
@ -161,6 +159,9 @@ cpumain(int argc, char **argv)
|
|||
if(argc != 0)
|
||||
usage();
|
||||
|
||||
if(user == nil)
|
||||
user = readcons("user", nil, 0);
|
||||
|
||||
if(mountfactotum() < 0){
|
||||
if(secstoreserver == nil)
|
||||
secstoreserver = authserver;
|
||||
|
|
Loading…
Reference in New Issue