* 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:
@ -242,7 +242,7 @@ void setup_env (struct passwd *info)
|
||||
*/
|
||||
|
||||
if ((NULL == info->pw_shell) || ('\0' == *info->pw_shell)) {
|
||||
static char temp_pw_shell[] = "/bin/sh";
|
||||
static char temp_pw_shell[] = SHELL;
|
||||
|
||||
info->pw_shell = temp_pw_shell;
|
||||
}
|
||||
|
Reference in New Issue
Block a user