Page MenuHomeFreeBSD

Use getlocalbase() in a few base system programs
ClosedPublic

Authored by se on Nov 16 2020, 11:52 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 7, 7:04 AM
Unknown Object (File)
Sat, Nov 2, 2:10 AM
Unknown Object (File)
Oct 9 2024, 7:11 AM
Unknown Object (File)
Oct 9 2024, 7:11 AM
Unknown Object (File)
Oct 9 2024, 7:10 AM
Unknown Object (File)
Oct 9 2024, 7:10 AM
Unknown Object (File)
Oct 9 2024, 6:50 AM
Unknown Object (File)
Oct 3 2024, 7:04 PM
Subscribers

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 - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

se requested review of this revision.Nov 16 2020, 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.Nov 18 2020, 8:01 PM
This revision was automatically updated to reflect the committed changes.
Owners added a reviewer: Restricted Owners Package.Nov 18 2020, 8:01 PM