diff options
Diffstat (limited to 'sys-utils/setpriv.c')
| -rw-r--r-- | sys-utils/setpriv.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys-utils/setpriv.c b/sys-utils/setpriv.c index c218be8e5e..505d1ee5b4 100644 --- a/sys-utils/setpriv.c +++ b/sys-utils/setpriv.c @@ -30,6 +30,7 @@ #include <sys/prctl.h> #include <sys/types.h> #include <unistd.h> +#include <paths.h> #include "all-io.h" #include "c.h" @@ -56,9 +57,6 @@ #define SETPRIV_EXIT_PRIVERR 127 /* how we exit when we fail to set privs */ -/* The shell to set SHELL env.variable if none is given in the user's passwd entry. */ -#define DEFAULT_SHELL "/bin/sh" - static gid_t get_group(const char *s, const char *err); enum cap_type { @@ -741,7 +739,7 @@ static void do_reset_environ(struct passwd *pw) if (pw->pw_shell && *pw->pw_shell) xsetenv("SHELL", pw->pw_shell, 1); else - xsetenv("SHELL", DEFAULT_SHELL, 1); + xsetenv("SHELL", _PATH_BSHELL, 1); xsetenv("HOME", pw->pw_dir, 1); xsetenv("USER", pw->pw_name, 1); |
