After opening all the needed files, tighten the pledge(2)
authorschwarze <schwarze@openbsd.org>
Wed, 11 Jul 2018 11:42:17 +0000 (11:42 +0000)
committerschwarze <schwarze@openbsd.org>
Wed, 11 Jul 2018 11:42:17 +0000 (11:42 +0000)
commit5117cd2872e582a1233cdfaea7760eb050235d5c
treecf4ec52a6bbc76fab66d0251464ad43e829d1d8b
parent4fc68ab0d1444580643c393116dfcb731d5c2e59
After opening all the needed files, tighten the pledge(2)
from "stdio rpath" to just "stdio", before parsing any user data.
It may not matter that much just yet, but parsing will become
slightly more complicated soon when i shall add UTF-8 handling.
OK millert@
usr.bin/lam/lam.c