shortcircuit TIOCGETA to directly return ENOTTY for non-ttys. It could
authorderaadt <deraadt@openbsd.org>
Fri, 9 Oct 2015 05:30:03 +0000 (05:30 +0000)
committerderaadt <deraadt@openbsd.org>
Fri, 9 Oct 2015 05:30:03 +0000 (05:30 +0000)
commit51d1e1a472c39c0aff11487fe3768a94f227251d
tree395bf0de843032fd71d63db1e337723c185fed37
parentd261d23e23bf63d64be06aa5d10b2a05077ecbb1
shortcircuit TIOCGETA to directly return ENOTTY for non-ttys.  It could
be called against a non-tty fd, so as to test "is this a tty".  Discovered
by sthen and rob pierce at the same time.
sys/kern/kern_pledge.c
sys/kern/sys_generic.c