diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2002-07-29 22:02:39 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2002-07-29 22:02:39 +0000 |
commit | d22f5ae9dfd18624963730f3353aac99aee7b2d2 (patch) | |
tree | 43351c1f40453c02a169e6e160747c6abdaf5d87 | |
parent | 68bb596b9934dad9629f0c9753faa4412c986ab4 (diff) |
Replace an instance of chmod() with fchmod()
-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; |