HomeFreeBSD

libutil: Reimplement getlocalbase()

Description

libutil: Reimplement getlocalbase()

  • Get rid of the pointless LOCALBASE_CTL_LEN mechanism
  • Apply minimal normalization to the paths obtained from the environment or sysctl variable
  • Turn the manual page into a manual page
  • Add tests

MFC after: 1 week
Reviewed by: se
Differential Revision: https://reviews.freebsd.org/D58362

Details

Provenance
desAuthored on Jul 21 2026, 8:31 AM
Reviewer
se
Differential Revision
D58362: libutil: Reimplement getlocalbase()
Parents
rG134ddd372f82: install: Code cleanup
Branches
Unknown
Tags
Unknown