aboutsummaryrefslogtreecommitdiffstats
path: root/nldev.c
diff options
context:
space:
mode:
Diffstat (limited to 'nldev.c')
-rw-r--r--nldev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nldev.c b/nldev.c
index 3cf661c..1588ccc 100644
--- a/nldev.c
+++ b/nldev.c
@@ -98,7 +98,7 @@ child(char *runpath)
if (write(0, 0, 0) < 0)
dup2(fd, 0);
if (write(2, 0, 0) < 0)
- dup2(fd, 0);
+ dup2(fd, 2);
if (fd > 2)
close(fd);
}