summaryrefslogtreecommitdiff
path: root/usr.sbin/mrinfo
diff options
context:
space:
mode:
authorRicardo Mestre <mestre@cvs.openbsd.org>2017-08-22 16:32:38 +0000
committerRicardo Mestre <mestre@cvs.openbsd.org>2017-08-22 16:32:38 +0000
commitddc0084efafd75507d272743db8ccfd91ba30b22 (patch)
tree4b01d56fcb10447cf959bac007161cd3effb1a18 /usr.sbin/mrinfo
parent6ac6d381146147a186c6015a4141f92963db30e6 (diff)
Call isatty(3) prior to ioctl(TIOCEXCL) to check if cu(1) was invoked on a
non-TTY and if that's the case then close the application. Otherwise without this verification if it's really a non-TTY then cu(1) will be aborted by pledge(2). feedback and OK by deraadt@
Diffstat (limited to 'usr.sbin/mrinfo')
0 files changed, 0 insertions, 0 deletions