ubase

suckless linux base utils
git clone git://git.2f30.org/ubase.git
Log | Files | Refs | README | LICENSE

commit d7ef6ea895a18133e6b296032de37226fceb6a66
parent 6fd1d4c80992788fdc14e11689096ee3ba14a8fb
Author: sin <sin@2f30.org>
Date:   Mon Feb 17 11:30:56 +0000

Preserve getty environment in login

Diffstat:
getty.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/getty.c b/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 }); }