mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-24 11:29:10 +00:00
Use fchmod() to restore the tty modes.
This commit is contained in:
parent
7968e6d2b2
commit
dfeeeca3bf
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=100900
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user