diff options
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/messages.c | 2 | ||||
-rw-r--r-- | libbb/setup_environment.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libbb/messages.c b/libbb/messages.c index 27d2cc157..56cccaf2c 100644 --- a/libbb/messages.c +++ b/libbb/messages.c | |||
@@ -40,7 +40,7 @@ const char bb_busybox_exec_path[] = CONFIG_BUSYBOX_EXEC_PATH; | |||
40 | const char bb_default_login_shell[] = LIBBB_DEFAULT_LOGIN_SHELL; | 40 | const char bb_default_login_shell[] = LIBBB_DEFAULT_LOGIN_SHELL; |
41 | /* util-linux manpage says /sbin:/bin:/usr/sbin:/usr/bin, | 41 | /* util-linux manpage says /sbin:/bin:/usr/sbin:/usr/bin, |
42 | * but I want to save a few bytes here. Check libbb.h before changing! */ | 42 | * but I want to save a few bytes here. Check libbb.h before changing! */ |
43 | const char bb_default_root_login_path[] = "/sbin:/usr/sbin:/bin:/usr/bin"; | 43 | const char bb_PATH_root_path[] = "PATH=/sbin:/usr/sbin:/bin:/usr/bin"; |
44 | 44 | ||
45 | 45 | ||
46 | const int const_int_0; | 46 | const int const_int_0; |
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, |