diff options
Diffstat (limited to 'usr.sbin/pppd/main.c')
-rw-r--r-- | usr.sbin/pppd/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/pppd/main.c b/usr.sbin/pppd/main.c index ba9c254..980064b 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; |