* configure.in, libmisc/shell.c, libmisc/setupenv.c, src/newgrp.c,

src/su.c: Let the system shell be configurable.
This commit is contained in:
nekral-guest
2009-07-22 13:30:06 +00:00
parent 4ad827768e
commit db38a728d1
6 changed files with 14 additions and 7 deletions

View File

@ -203,7 +203,7 @@ void execve_shell (const char *shellstr, char *args[], char *const envp[])
n_args--;
}
(void) execve ("/bin/sh", targs, envp);
(void) execve (SHELL, targs, envp);
} else {
errno = err;
}
@ -724,7 +724,7 @@ int main (int argc, char **argv)
* Set the default shell.
*/
if ((NULL == shellstr) || ('\0' == shellstr[0])) {
shellstr = "/bin/sh";
shellstr = SHELL;
}
(void) signal (SIGINT, SIG_IGN);