Preserve getty environment in login
This commit is contained in:
parent
6fd1d4c809
commit
d7ef6ea895
2
getty.c
2
getty.c
@ -108,5 +108,5 @@ main(int argc, char *argv[])
|
||||
eprintf("login name cannot start with '-'\n");
|
||||
if (logname[0] == '\0')
|
||||
return EXIT_FAILURE;
|
||||
return execvp("/bin/login", (char *[]){ "login", logname, NULL });
|
||||
return execvp("/bin/login", (char *[]){ "login", "-p", logname, NULL });
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user