tmux: only consider ACCESSPERMS for setting mode on socket_path.
authorsemarie <semarie@openbsd.org>
Thu, 7 Jul 2016 09:24:09 +0000 (09:24 +0000)
committersemarie <semarie@openbsd.org>
Thu, 7 Jul 2016 09:24:09 +0000 (09:24 +0000)
commitd61e0664167b898ab00cf76b043f66f4fd3e1d83
treee1af51f1dc4fe74532e3a4812ace7023d59e14e3
parent9f7f3d29f1a565aa2aadd793d16d23c45719c669
tmux: only consider ACCESSPERMS for setting mode on socket_path.

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

ok nicm@ beck@ deraadt@
usr.bin/tmux/server.c