this one was my fault, when an error occurrs on mesg(1) it must exit with error
authormestre <mestre@openbsd.org>
Sat, 11 Aug 2018 10:58:39 +0000 (10:58 +0000)
committermestre <mestre@openbsd.org>
Sat, 11 Aug 2018 10:58:39 +0000 (10:58 +0000)
commitc2f279245ebac5655292ee760fc5d0712f47ec35
treec74394983fd03e9900dcae4204ea2b393e30a067
parentaca8cde2a4430d14e1cbfb1c2f1854f68fd220d5
this one was my fault, when an error occurrs on mesg(1) it must exit with error
values >1 since the return value 1 is used to indicate that messages have been
disallowed. while here also s/unveil/pledge on err(3).

OK tb@ kn@ deraadt@
usr.bin/mesg/mesg.c