diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2011-03-08 21:00:36 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-03-08 21:00:36 +0100 |
commit | 681efe20d327e9e6774b174a617d66bbb9d21f48 (patch) | |
tree | 4331e443ee303c24364b1655651c8584db8b51c1 /util-linux/script.c | |
parent | 86cf0364bd58e07646a23a1128e4a9ea79189579 (diff) | |
download | busybox-w32-681efe20d327e9e6774b174a617d66bbb9d21f48.tar.gz busybox-w32-681efe20d327e9e6774b174a617d66bbb9d21f48.tar.bz2 busybox-w32-681efe20d327e9e6774b174a617d66bbb9d21f48.zip |
use user's shell instead of hardwired "/bin/sh" (android needs this)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux/script.c')
-rw-r--r-- | util-linux/script.c | 5 |
1 files changed, 1 insertions, 4 deletions
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) | |||
65 | if (!(opt & OPT_q)) { | 65 | if (!(opt & OPT_q)) { |
66 | printf("Script started, file is %s\n", fname); | 66 | printf("Script started, file is %s\n", fname); |
67 | } | 67 | } |
68 | shell = getenv("SHELL"); | 68 | shell = get_shell_name(); |
69 | if (shell == NULL) { | ||
70 | shell = DEFAULT_SHELL; | ||
71 | } | ||
72 | 69 | ||
73 | pty = xgetpty(pty_line); | 70 | pty = xgetpty(pty_line); |
74 | 71 | ||