aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Lohmann <20h@r-36.net>2012-05-02 21:06:24 +0200
committerChristoph Lohmann <20h@r-36.net>2012-05-02 21:06:24 +0200
commit4a9c648ee9a13e310901528e830755c148330518 (patch)
tree280713a1db492c4d6ed09817d3824b2b3beb109f
parentae9c18cf4623a0055fda83fecc0235a26116621c (diff)
downloadnldev-4a9c648ee9a13e310901528e830755c148330518.tar.bz2
nldev-4a9c648ee9a13e310901528e830755c148330518.tar.xz
Fixing dup typo in execl.
-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);
}