the program overwrites ONLY the installpath variable(s) in /etc/pkg.conf. The rest of the variables will remain.
PKG_PATH environment variable takes precedence over any installpath initializations. I'm running 5.8. I don't know how to pledge it. I will make sure to, past the 5.9 release. I'm sure it won't be hard. -Luke On Fri, Jan 29, 2016 at 6:52 AM, Karel Gardas <gard...@gmail.com> wrote: > Just a few notes if you aim for base (but keep in mind I'm not > OpenBSD developer!), I believe your app should be: > > - as simple as possible, so (a) avoid forking when not necessary > (uname & co.), (b) use common command line parsing as preferred by the > project, (c) use common project coding style. > > - convince developers that your application is necessary in base as > this is super-useful for users > > Now, unrelated personal notes: > > - some "ping" which overwrites /etc/<something> is absolutely no go > here. Your code does not convince me to change that. > - also you are on OpenBSD, why you don't use pledge to minimize risk? > > Cheers, > Karel