tty(1): exit with status 2 if unveil(2) or pledge(2) fail
authorcheloha <cheloha@openbsd.org>
Mon, 6 May 2024 16:49:46 +0000 (16:49 +0000)
committercheloha <cheloha@openbsd.org>
Mon, 6 May 2024 16:49:46 +0000 (16:49 +0000)
commitce405b3800556c06825a3f5c5904488a84791778
treeb1d9d5ad4e45f0a2783ea69c2e259dd8b1ed0ecc
parent21e142091427cef1ae08d0c57a9429980d4d2ba3
tty(1): exit with status 2 if unveil(2) or pledge(2) fail

tty(1) returns >1 on error, not 1.

Thread: https://marc.info/?l=openbsd-tech&m=171494082629111&w=2

ok deraadt@ guenther@
usr.bin/tty/tty.c