aboutsummaryrefslogtreecommitdiff
path: root/util-linux/script.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2011-03-08 21:00:36 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2011-03-08 21:00:36 +0100
commit681efe20d327e9e6774b174a617d66bbb9d21f48 (patch)
tree4331e443ee303c24364b1655651c8584db8b51c1 /util-linux/script.c
parent86cf0364bd58e07646a23a1128e4a9ea79189579 (diff)
downloadbusybox-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.c5
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