pledge() a little later, after getopt operation, when we know tty name.
authorderaadt <deraadt@openbsd.org>
Fri, 3 Aug 2018 06:57:34 +0000 (06:57 +0000)
committerderaadt <deraadt@openbsd.org>
Fri, 3 Aug 2018 06:57:34 +0000 (06:57 +0000)
commit8d69996f0cfd994d25340538cec24a67d15856f7
tree05720c1c3c823f90cb5f3aa31311a587fd0c7687
parented3a953df5952b0cb0531de63c91b6ecf25b7930
pledge() a little later, after getopt operation, when we know tty name.
We can then unveil the tty file, and pledge() as before.  No other files
are accessed after that point in time.
usr.bin/mesg/mesg.c