diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2021-09-04 12:52:57 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2021-09-04 12:52:57 +0000 |
commit | 0882dc0b36dd3ae4623b9707ee964e7ca83ae665 (patch) | |
tree | 445123f545ab78b15f849a22cc159397ce1520aa /manconf.h | |
parent | 85c3fdaead0d311f9f74a2da69f7ba1e8fe998fd (diff) | |
download | mandoc-0882dc0b36dd3ae4623b9707ee964e7ca83ae665.tar.gz |
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 to 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.
Issue reported and patch tested
by Soeren Tempel <soeren at soeren hyphen tempel dot net>.
Diffstat (limited to 'manconf.h')
0 files changed, 0 insertions, 0 deletions