From 681efe20d327e9e6774b174a617d66bbb9d21f48 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Tue, 8 Mar 2011 21:00:36 +0100 Subject: use user's shell instead of hardwired "/bin/sh" (android needs this) Signed-off-by: Denys Vlasenko --- util-linux/script.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'util-linux') diff --git a/util-linux/script.c b/util-linux/script.c index b9317fc7c..47efc4526 100644 --- a/util-linux/script.c +++ b/util-linux/script.c @@ -65,10 +65,7 @@ int script_main(int argc UNUSED_PARAM, char **argv) if (!(opt & OPT_q)) { printf("Script started, file is %s\n", fname); } - shell = getenv("SHELL"); - if (shell == NULL) { - shell = DEFAULT_SHELL; - } + shell = get_shell_name(); pty = xgetpty(pty_line); -- cgit v1.2.3