[hackers] [ubase] I am stupid. || sin

From: <git_AT_suckless.org>
Date: Tue, 03 Jun 2014 12:04:05 +0200

commit 0de4f5fd9fdfb3106a6ff2da2d31ad9f9a702aeb
Author: sin <sin_AT_2f30.org>
Date: Tue Jun 3 11:03:25 2014 +0100

    I am stupid.

diff --git a/login.c b/login.c
index 92979cf..36de069 100644
--- a/login.c
+++ b/login.c
_AT_@ -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);
Received on Tue Jun 03 2014 - 12:04:05 CEST

This archive was generated by hypermail 2.3.0 : Tue Jun 03 2014 - 12:12:08 CEST