use user's shell instead of hardwired "/bin/sh" (android needs this)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@ -316,10 +316,8 @@ static NOINLINE void start_shell_in_child(const char* tty_name)
|
||||
int pid = xvfork();
|
||||
if (pid == 0) {
|
||||
struct termios termchild;
|
||||
char *shell = getenv("SHELL");
|
||||
const char *shell = get_shell_name();
|
||||
|
||||
if (!shell)
|
||||
shell = (char *) DEFAULT_SHELL;
|
||||
signal(SIGHUP, SIG_IGN);
|
||||
// set tty as a controlling tty
|
||||
setsid();
|
||||
|
Reference in New Issue
Block a user