aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/eqn.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2021-09-04 12:52:57 +0000
committerIngo Schwarze <schwarze@openbsd.org>2021-09-04 12:52:57 +0000
commit846fca47260fb505ce05b37709aab0ec564e5aa9 (patch)
treee2c853b959275fff337b08a262bd60312c03f8c6 /eqn.c
parentfe0b0092185401581ba11b44f08520bad87fbeda (diff)
downloadmandoc-846fca47260fb505ce05b37709aab0ec564e5aa9.tar.gz
mandoc-846fca47260fb505ce05b37709aab0ec564e5aa9.tar.zst
mandoc-846fca47260fb505ce05b37709aab0ec564e5aa9.zip
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 'eqn.c')
0 files changed, 0 insertions, 0 deletions