diff options
-rw-r--r-- | usr.sbin/pppd/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/pppd/main.c b/usr.sbin/pppd/main.c index 48a307fcaae..22ce837206d 100644 --- a/usr.sbin/pppd/main.c +++ b/usr.sbin/pppd/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.38 2002/07/01 19:31:37 deraadt Exp $ */ +/* $OpenBSD: main.c,v 1.39 2002/07/29 22:02:38 millert Exp $ */ /* * main.c - Point-to-Point Protocol main module @@ -46,7 +46,7 @@ #if 0 static char rcsid[] = "Id: main.c,v 1.49 1998/05/05 05:24:17 paulus Exp $"; #else -static char rcsid[] = "$OpenBSD: main.c,v 1.38 2002/07/01 19:31:37 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: main.c,v 1.39 2002/07/29 22:02:38 millert Exp $"; #endif #endif @@ -824,7 +824,7 @@ close_tty() restore_tty(ttyfd); if (tty_mode != (mode_t) -1) - chmod(devnam, tty_mode); + fchmod(ttyfd, tty_mode); close(ttyfd); ttyfd = -1; |