CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2026/09/02 06:30:19
Modified files:
usr.bin/mandoc : main.c
Log message:
When a manual page file requested via man(1) is not found in any mandoc.db(5)
but is then found by the fallback search in the file system, do not warn
about an outdated mandoc.db if the manual page tree that contains the
requested file does not contain a mandoc.db file in the first place.
This avoids bogus, annoying warnings in two situations:
(1) when users choose to have their own, private manual page tree
without putting a mandoc.db into it; and
(2) on operating systems allowing a configuration where makewhatis(8)
and mandoc.db(5) are not used at all.
Issue found by Paul Bredbury <[email protected]> on Alpine Linux, where
installing apropos(1) and makewhatis(8) is optional and not the default.