From 4a9c648ee9a13e310901528e830755c148330518 Mon Sep 17 00:00:00 2001 From: Christoph Lohmann <20h@r-36.net> Date: Wed, 2 May 2012 21:06:24 +0200 Subject: Fixing dup typo in execl. --- nldev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nldev.c') 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); } -- cgit v1.2.3