diff options
author | peter <peter@FreeBSD.org> | 2002-07-30 03:49:27 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2002-07-30 03:49:27 +0000 |
commit | 6d477ea5859cb94e8e1579728112ed797dd61ff8 (patch) | |
tree | 938cb9dc0ec5d914ae6a6d8c879b1c637a1d4c2e /usr.sbin/pppd/main.c | |
parent | 27afff05e2a6c4b96ea0b4cd692a7b5e92842979 (diff) | |
download | FreeBSD-src-6d477ea5859cb94e8e1579728112ed797dd61ff8.zip FreeBSD-src-6d477ea5859cb94e8e1579728112ed797dd61ff8.tar.gz |
Use fchmod() to restore the tty modes.
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; |