ubase

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

commit 0de4f5fd9fdfb3106a6ff2da2d31ad9f9a702aeb
parent bc709278b617d6c358897cad4fb68888f359bf1d
Author: sin <sin@2f30.org>
Date:   Tue,  3 Jun 2014 11:03:25 +0100

I am stupid.

Diffstat:
Mlogin.c | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/login.c b/login.c @@ -117,11 +117,11 @@ dologin(struct passwd *pw, int preserve) { if (preserve == 0) clearenv(); - setenv("HOME", pw->pw_dir, preserve); - setenv("SHELL", pw->pw_shell, preserve); - setenv("USER", pw->pw_name, preserve); - setenv("LOGNAME", pw->pw_name, preserve); - setenv("PATH", ENV_PATH, preserve); + setenv("HOME", pw->pw_dir, !preserve); + setenv("SHELL", pw->pw_shell, !preserve); + setenv("USER", pw->pw_name, !preserve); + setenv("LOGNAME", pw->pw_name, !preserve); + setenv("PATH", ENV_PATH, !preserve); if (chdir(pw->pw_dir) < 0) eprintf("chdir %s:", pw->pw_dir); execlp(pw->pw_shell, pw->pw_shell, "-l", NULL);