An early pledge takes away many risk factors during spool opening/parsing.
authorderaadt <deraadt@openbsd.org>
Wed, 8 Aug 2018 17:52:46 +0000 (17:52 +0000)
committerderaadt <deraadt@openbsd.org>
Wed, 8 Aug 2018 17:52:46 +0000 (17:52 +0000)
commit249577a17d67a5dd21a027c2498ffa674a7f38da
tree3f9eb739ee86a73b2db9093ade77bbd6e8cd22f3
parent82b65d8a180b0d73c9c890695f0173ca9f84b046
An early pledge takes away many risk factors during spool opening/parsing.
This is worthwhile keeping, so add "unveil" to defer unveil(2) calls.
After various special cases are handled (including files which are anywhere
in the filesystem), unveil() to the specific file only.
usr.bin/from/from.c