]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Make use of the getlocalbase() function for run-time adjustment of the
authorse <se@FreeBSD.org>
Wed, 18 Nov 2020 20:00:55 +0000 (20:00 +0000)
committerse <se@FreeBSD.org>
Wed, 18 Nov 2020 20:00:55 +0000 (20:00 +0000)
commit88a6a2f1285664918d66406df2dcab323d405992
treec3ee43806a81013696621eae845c7cb803eb2d91
parent7ca012e7ecf3aa737a054c53f8b6f80febfddfe6
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