Download raw body.
got/tog/gotadmin: pledge earlier
On Mon, Feb 13, 2023 at 11:03:57AM +0100, Omar Polo wrote: > we're alreading doing this in some places, so let's do it > consistently. It's almost a mechanical diff, i've checked each case > however to make sure we don't do operations not covered by the set of > pledge promises in the getopt loop. The only "real" work done > sometimes is realpath(3), which is covered by rpath. Fine with me, consistency is good. I believe there was some concern about running setlocale() and initscr() (from ncurses) under pledge. So we are probably already pledging too early in some cases, with or without your diff. Since everything is working as expected this is not a big deal, just something to keep in mind for later.
got/tog/gotadmin: pledge earlier