aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/pppd
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2002-07-30 03:49:27 +0000
committerPeter Wemm <peter@FreeBSD.org>2002-07-30 03:49:27 +0000
commitdfeeeca3bf38865352400d10cefcb102ef6b1452 (patch)
tree938cb9dc0ec5d914ae6a6d8c879b1c637a1d4c2e /usr.sbin/pppd
parent7968e6d2b29fd6895d687e5a497d9593bf4687f7 (diff)
Notes
Diffstat (limited to 'usr.sbin/pppd')
-rw-r--r--usr.sbin/pppd/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/pppd/main.c b/usr.sbin/pppd/main.c
index ba9c25488bf0..980064b0444c 100644
--- a/usr.sbin/pppd/main.c
+++ b/usr.sbin/pppd/main.c
@@ -833,7 +833,7 @@ close_tty()
restore_tty(ttyfd);
if (tty_mode != (mode_t) -1)
- chmod(devnam, tty_mode);
+ fchmod(ttyfd, tty_mode);
close(ttyfd);
ttyfd = -1;