diff options
Diffstat (limited to 'libbb/setup_environment.c')
-rw-r--r-- | libbb/setup_environment.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/setup_environment.c b/libbb/setup_environment.c index a98b9a5bd..a6f44f7f0 100644 --- a/libbb/setup_environment.c +++ b/libbb/setup_environment.c | |||
@@ -56,7 +56,7 @@ void setup_environment(const char *shell, int loginshell, int changeenv, const s | |||
56 | xsetenv("SHELL", shell); | 56 | xsetenv("SHELL", shell); |
57 | xsetenv("USER", pw->pw_name); | 57 | xsetenv("USER", pw->pw_name); |
58 | xsetenv("LOGNAME", pw->pw_name); | 58 | xsetenv("LOGNAME", pw->pw_name); |
59 | xsetenv("PATH", (pw->pw_uid ? bb_default_login_path : bb_default_root_login_path)); | 59 | xsetenv("PATH", (pw->pw_uid ? bb_default_path : bb_default_root_path)); |
60 | } | 60 | } |
61 | else if (changeenv) { | 61 | else if (changeenv) { |
62 | /* Set HOME, SHELL, and if not becoming a super-user, | 62 | /* Set HOME, SHELL, and if not becoming a super-user, |