Page MenuHomeFreeBSD

man: make pollution requirements clear or man_check_for_so
AcceptedPublic

Authored by kevans on Nov 5 2021, 8:35 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 29 2023, 12:50 PM
Unknown Object (File)
Dec 28 2023, 5:53 PM
Unknown Object (File)
Sep 13 2023, 8:45 PM
Unknown Object (File)
Dec 27 2022, 1:25 PM
Subscribers

Details

Summary

The first argument was previously $manpage, but we effectively only
worked with a previously-set $manpage anyways; stop pretending that the
argument matters and just pass the path of interest in.

This previously relied on $path being set in the caller, but that only
worked coincidentally in the search loop for non-paths. This fixes
.so references when a path to a manpage has been provided rather than
just the name/section of a manpage.

While here, fix the path we pass in while searching for .so references
during the relative/absolute path case. .so references are w.r.t. to a
mandir, not a mandir/section.

Sponsored by: Klara, Inc.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 42617
Build 39505: arc lint + arc unit