summaryrefslogtreecommitdiff
path: root/gnu/Makefile
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2021-09-04 12:47:05 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2021-09-04 12:47:05 +0000
commit271c09d5d68acc5835580ed6d26e35146543b093 (patch)
treeeb8f33a951b5b84cdcd88984bcb8ad14c4f1f161 /gnu/Makefile
parent2905176655a3ed1750aa16a2cb8d4308e05e65f0 (diff)
In the fallback code to look for manual pages without using mandoc.db(5),
accept files "man<one-digit-section>/<name>.<full-section>" in addition the already supported "man<full-section>/name.[01-9]*". Needed for example on Alpine Linux which puts its Perl manuals into "man3/<name>.3pm" and the POSIX manuals into "man3/<name>.3p". While here, allow the glob(3) at the end of fs_lookup() to add multiple matches to the result set. This improves man -w output and may also help some cases of plain man(1), allowing main() to prioritize properly rather than fs_lookup() picking a random match. None of this really matters for standard manpaths on OpenBSD because both base system and ports developers are highly disciplined about putting manual pages into properly named files and directories, but even on OpenBSD, it may help to access some raw, unported third-party manual page trees. Issue reported and patch tested by Soeren Tempel <soeren at soeren hyphen tempel dot net>.
Diffstat (limited to 'gnu/Makefile')
0 files changed, 0 insertions, 0 deletions