Remove initial pledge(2) that doesn't give us much protection since it's so
authormestre <mestre@openbsd.org>
Tue, 25 Sep 2018 06:43:20 +0000 (06:43 +0000)
committermestre <mestre@openbsd.org>
Tue, 25 Sep 2018 06:43:20 +0000 (06:43 +0000)
commit12996ffa3223b6b3ef6d449c570f5e5c36a6399f
treefe11b03301f2a25fe82add4b0d19fe10662b8a85
parent51d464e83edf6be0780db4da822f6b389d86d136
Remove initial pledge(2) that doesn't give us much protection since it's so
short lived, we either go directly exiting the program or just a few lines
below we call pledge(2) again, where it actually should be, and with really
reduced promises. Next commit will restrict further access to the filesystem
through unveil(2).

OK deraadt@ kn@
usr.bin/getent/getent.c