]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Replace literal uses of /usr/local with a variable
authorse <se@FreeBSD.org>
Tue, 3 Nov 2020 12:29:10 +0000 (12:29 +0000)
committerse <se@FreeBSD.org>
Tue, 3 Nov 2020 12:29:10 +0000 (12:29 +0000)
commit1557fe211683cb1d0c2ac886797ffb836e98a921
tree825b8cd5e0ac8ec99d86f134af1d1b85b3bc9698
parent9c227e5ba0f7e106bc14861b8e7db5ec30dee26c
Replace literal uses of /usr/local with a variable

The variable defaults to "/usr/local", unless sysctl returns some other
value for "user.localbase".

The value of user.localbase defaults to _PATH_LOCALBASE as defined in
paths.h and thus this commit has no immediate effect.

The purpose of this change is to make /etc/defaults/rc.conf automatically
use the value of _PATH_LOCALBASE when not set to the default value.

Reviewed by: imp, scottl
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D27014
libexec/rc/rc
libexec/rc/rc.conf