When the content of a manual page does not specify a section, the
authorschwarze <schwarze@openbsd.org>
Wed, 17 Aug 2016 20:46:06 +0000 (20:46 +0000)
committerschwarze <schwarze@openbsd.org>
Wed, 17 Aug 2016 20:46:06 +0000 (20:46 +0000)
commit289fdc1a87fd959053d8bda85d6806aa24b682c7
tree0172bd3ef1497051038ce958026d06dc1bbc21e0
parent3f3ed8b5d3bdfdccaf28b637ce563f144c279163
When the content of a manual page does not specify a section, the
empty string got added to the list of sections, breaking the database
format slightly and causing the page to not be considered part of
any section, not even if a section could be deduced from the directory
or from the file name.
Bug found due to the bogus pcredemo(3) "manual" in the pcre-8.38p0 package.
usr.bin/mandoc/dba.c
usr.bin/mandoc/dba.h
usr.bin/mandoc/dba_read.c
usr.bin/mandoc/mandocdb.c