]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Make use of the getlocalbase() function for run-time adjustment of the
authorStefan Eßer <se@FreeBSD.org>
Wed, 18 Nov 2020 20:00:55 +0000 (20:00 +0000)
committerStefan Eßer <se@FreeBSD.org>
Wed, 18 Nov 2020 20:00:55 +0000 (20:00 +0000)
commit56d11d4a3749408b91751f2b1d7082167ae1814d
treec3ee43806a81013696621eae845c7cb803eb2d91
parent991f6e7534a9b1a99b7da711676e6714e2cf6680
Make use of the getlocalbase() function for run-time adjustment of the
local software base directory, as committed in SVN rev. 367813.

The pkg and mailwrapper programs used the LOCALBASE environment variable
for this purpose and this functionality is preserved by getlocalbase().

After this change, the value of the user.localbase sysctl variable is used
if present (and not overridden in the environment).

The nvmecontrol program gains support of a dynamic path to its plugin
directory with this update.

Differential Revision: https://reviews.freebsd.org/D27237
sbin/nvmecontrol/comnd.c
sbin/nvmecontrol/nvmecontrol.c
usr.sbin/mailwrapper/mailwrapper.c
usr.sbin/pkg/Makefile
usr.sbin/pkg/config.c
usr.sbin/pkg/pkg.c