aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/runscript.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runscript.c b/src/runscript.c
index bd404cd2..49048044 100644
--- a/src/runscript.c
+++ b/src/runscript.c
@@ -379,7 +379,7 @@ static bool svc_exec (const char *arg1, const char *arg2)
* good for us */
close (master_tty);
- dup2 (slave_tty, 0);
+ dup2 (fileno (stdin), 0);
dup2 (slave_tty, 1);
dup2 (slave_tty, 2);
if (slave_tty > 2)