diff options
author | Ron Yorston <rmy@pobox.com> | 2014-05-06 20:41:10 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2014-05-06 20:41:10 +0100 |
commit | d3bef66324a8ca5eed9ad7c15ead3a1cc9a9151e (patch) | |
tree | 4b364ba4b6b9e96c2629fe382fef0248d76833dd /util-linux/script.c | |
parent | 7905d97aeece18da362a5a1e066abff2d2e5c16b (diff) | |
parent | d257608a8429b64e1a04c7cb6d99975eeb2c3955 (diff) | |
download | busybox-w32-d3bef66324a8ca5eed9ad7c15ead3a1cc9a9151e.tar.gz busybox-w32-d3bef66324a8ca5eed9ad7c15ead3a1cc9a9151e.tar.bz2 busybox-w32-d3bef66324a8ca5eed9ad7c15ead3a1cc9a9151e.zip |
Merge branch 'busybox' into merge
Conflicts:
debianutils/which.c
editors/vi.c
libbb/executable.c
Diffstat (limited to 'util-linux/script.c')
-rw-r--r-- | util-linux/script.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/util-linux/script.c b/util-linux/script.c index 8fb991d15..abcd73bff 100644 --- a/util-linux/script.c +++ b/util-linux/script.c | |||
@@ -77,8 +77,15 @@ int script_main(int argc UNUSED_PARAM, char **argv) | |||
77 | if (!(opt & OPT_q)) { | 77 | if (!(opt & OPT_q)) { |
78 | printf("Script started, file is %s\n", fname); | 78 | printf("Script started, file is %s\n", fname); |
79 | } | 79 | } |
80 | |||
80 | shell = get_shell_name(); | 81 | shell = get_shell_name(); |
81 | 82 | ||
83 | /* Some people run "script ... 0>&-". | ||
84 | * Our code assumes that STDIN_FILENO != pty. | ||
85 | * Ensure STDIN_FILENO is not closed: | ||
86 | */ | ||
87 | bb_sanitize_stdio(); | ||
88 | |||
82 | pty = xgetpty(pty_line); | 89 | pty = xgetpty(pty_line); |
83 | 90 | ||
84 | /* get current stdin's tty params */ | 91 | /* get current stdin's tty params */ |