export {b,r}ootduid as sysctl, installer/sysupgrade improvements

2022-09-05 Thread Klemens Nanni
The installer considers a disk a root disk if 'a' is FFS and contains expected files. Furthermore, unattended upgrades will always install to the first root disk that is found. This works fine on machines with only one root disk, but it quickly behaves unexpectedly when having multiple disks/inst

Re: rpki-client: fully reset provider for each providerAS

2022-09-05 Thread Job Snijders
On Mon, Sep 05, 2022 at 02:46:45PM +0200, Theo Buehler wrote: > Once a ProviderAS has an afiLimit, all subsequent ProviderAS without > afiLimit will erroneously inherit that limit since provider.afi is > only (re)set if pa->afiLimit != NULL. Zeroing the provider inside the > loop avoids this issue.

rpki-client: fully reset provider for each providerAS

2022-09-05 Thread Theo Buehler
Once a ProviderAS has an afiLimit, all subsequent ProviderAS without afiLimit will erroneously inherit that limit since provider.afi is only (re)set if pa->afiLimit != NULL. Zeroing the provider inside the loop avoids this issue. Index: aspa.c ==

Re: top: align CPU lines horizontally

2022-09-05 Thread Klemens Nanni
cheloha's "days" fix for top(1) reminded me of this diff in my tree. original thread: https://marc.info/?l=openbsd-tech&m=157089317007317&w=2 On Sun, Oct 13, 2019 at 01:58:43AM +0200, Klemens Nanni wrote: > On Sat, Oct 12, 2019 at 05:38:13PM -0500, Scott Cheloha wrote: > > Also, just count how man

Re: unwind.conf.5: Zap duplicate bits, mention route nameserver

2022-09-05 Thread Klemens Nanni
On Tue, Oct 26, 2021 at 01:24:30PM +, Klemens Nanni wrote: > Mentioning `route nameserver' relevance made it obvious that the > `preference' block duplicates lots of information and I despise adding > to that. > > So rearrange the list of types such that conceptually related ones are > subsequ

rpki-client: don't leak cert in aspa_parse()

2022-09-05 Thread Theo Buehler
The cert was allocated by cert_parse_ee_cert() and needs to be freed. Index: aspa.c === RCS file: /cvs/src/usr.sbin/rpki-client/aspa.c,v retrieving revision 1.2 diff -u -p -r1.2 aspa.c --- aspa.c 3 Sep 2022 14:40:09 - 1