Re: Patch to add -p (reading/parsing /etc/sysctl.conf) option to sysctl

2023-02-21 Thread jhx
Thanks to all the suggestions/hints from Crystal Kolipe and Janne Johansson I made a few changes to the patch. This also fixes reading commented lines. Thanks! --- sysctl.c.dist Tue Feb 21 12:17:57 2023 +++ sysctl.cTue Feb 21 13:41:13 2023 @@ -138,6 +138,9 @@ /* Maximum size object

Patch to add -p (reading/parsing /etc/sysctl.conf) option to sysctl

2023-02-21 Thread jhx
Hello everyone, this patch adds the "-p" option to sysctl which makes it possible to read/parse/apply settings from /etc/sysctl.conf at any time the user wishes. Normally, the sysctl.conf is only parsed during system boot via rc. I've tested the patch on OpenBSD 7.2 amd64 and so far there have