Page MenuHomeFreeBSD

Use getlocalbase() in a few base system programs
ClosedPublic

Authored by se on Mon, Nov 16, 11:52 AM.

Details

Reviewers
scottl
imp
bdrewery
bapt
Group Reviewers
Restricted Owners Package(Owns No Changed Paths)
Commits
rS367816: Make use of the getlocalbase() function for run-time adjustment of the
Summary

These are programs that either used getenv("LOCALBASE") or had _PATH_LOCALBASE compiled in and which have been converted to use getlocalbase() instead.

Test Plan

Apply the patches in review D27236 and rebuild and install lib/libutil.

Verify that the programs included in this review can be built and that they continue to run.
Test with different values of the LOCALBASE environment variable and the user.localbase sysctl parameter to verify that the correct path is constructed.

Diff Detail

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

se requested review of this revision.Mon, Nov 16, 11:52 AM
se retitled this revision from Use getlocalbase() in a few base sysetm programs to Use getlocalbase() in a few base system programs.

Add another invocation of getlocalbase() instead of getenv("LOCALBASE") in usr.sbin/pkg

This revision was not accepted when it landed; it landed in state Needs Review.Wed, Nov 18, 8:01 PM
This revision was automatically updated to reflect the committed changes.
Owners added a reviewer: Restricted Owners Package.Wed, Nov 18, 8:01 PM