aboutsummaryrefslogtreecommitdiff
path: root/util-linux/script.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/script.c')
-rw-r--r--util-linux/script.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/script.c b/util-linux/script.c
index 1c95ea550..700f0cb0a 100644
--- a/util-linux/script.c
+++ b/util-linux/script.c
@@ -168,7 +168,7 @@ int script_main(int argc ATTRIBUTE_UNUSED, char **argv)
168 /* child: make pty slave to be input, output, error; run shell */ 168 /* child: make pty slave to be input, output, error; run shell */
169 close(pty); /* close pty master */ 169 close(pty); /* close pty master */
170 /* open pty slave to fd 0,1,2 */ 170 /* open pty slave to fd 0,1,2 */
171 close(0); 171 close(0);
172 xopen(pty_line, O_RDWR); /* uses fd 0 */ 172 xopen(pty_line, O_RDWR); /* uses fd 0 */
173 xdup2(0, 1); 173 xdup2(0, 1);
174 xdup2(0, 2); 174 xdup2(0, 2);