diff options
| -rw-r--r-- | usr.sbin/ppp/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ppp/main.c b/usr.sbin/ppp/main.c index 968e6d261333..b7de8a5671dd 100644 --- a/usr.sbin/ppp/main.c +++ b/usr.sbin/ppp/main.c @@ -311,7 +311,7 @@ main(int argc, char **argv) return 2; } for (f = 1; f < sizeof holdfd / sizeof *holdfd; f++) - dup2(holdfd[0], holdfd[f]); + holdfd[f] = dup(holdfd[0]); name = strrchr(argv[0], '/'); log_Open(name ? name + 1 : argv[0]); |
