Fixing dup typo in execl. - nldev - NetLink DEVice manager; a lightweight netlink frontend for mdev.
       
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
 (DIR) commit 4a9c648ee9a13e310901528e830755c148330518
 (DIR) parent ae9c18cf4623a0055fda83fecc0235a26116621c
 (HTM) Author: Christoph Lohmann <20h@r-36.net>
       Date:   Wed,  2 May 2012 21:06:24 +0200
       
       Fixing dup typo in execl.
       
       Diffstat:
         nldev.c                             |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
 (DIR) diff --git 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);
                                }