biff, mesg, vi: only consider ACCESSPERMS for setting tty mode.
authorsemarie <semarie@openbsd.org>
Thu, 7 Jul 2016 09:26:25 +0000 (09:26 +0000)
committersemarie <semarie@openbsd.org>
Thu, 7 Jul 2016 09:26:25 +0000 (09:26 +0000)
commit1f2ac5f252e9a4dffb05e60fdbaf4382f35bb518
tree1abba17892d8f4ac86108ab65f7e4f5e7d2bcbe1
parentd61e0664167b898ab00cf76b043f66f4fd3e1d83
biff, mesg, vi: only consider ACCESSPERMS for setting tty mode.

it explicitly removes any S_ISUID|S_ISGID|S_ISTXT bits, instead of letting
pledge(2) silenciously remove them.

ok beck@ deraadt@
usr.bin/biff/biff.c
usr.bin/mesg/mesg.c
usr.bin/vi/cl/cl_term.c