bluhm discovered "script < /dev/null" attempts tty operations in violation
authorderaadt <deraadt@openbsd.org>
Wed, 12 Apr 2017 14:49:05 +0000 (14:49 +0000)
committerderaadt <deraadt@openbsd.org>
Wed, 12 Apr 2017 14:49:05 +0000 (14:49 +0000)
commitce1641756a87925e140ba70c6e5ab6e78ff2a757
tree8a5fc63ea1b92216f0293387a606e470f5f32e34
parent8813fef3d1b3722177a6eaacde27cd9b7e129ee6
bluhm discovered "script < /dev/null" attempts tty operations in violation
of pledge.  We can wrap isatty() around those codepaths.
ok bluhm beck
usr.bin/script/script.c