When the MAN_DIR/manpath.conf configuration file does not exist or is empty,
authorschwarze <schwarze@openbsd.org>
Fri, 18 Jul 2014 14:46:20 +0000 (14:46 +0000)
committerschwarze <schwarze@openbsd.org>
Fri, 18 Jul 2014 14:46:20 +0000 (14:46 +0000)
commitde65174757d08bdd001709db7a5364981e6ad168
treeb50feb2e9cfa3aba9c88f8ccc2c4ffaa6294cdc3
parentb04f0284e7d2f8b805d6b5f1b2c6005f318ca9d7
When the MAN_DIR/manpath.conf configuration file does not exist or is empty,
log the problem, hand the pg_error_internal() error page to the client,
and exit(3) in a controlled way instead of stumbling on and segfaulting
later.

Patch from Sebastien Marie <semarie-openbsd at latrappe dot fr>,
messages tweaked by me.
usr.bin/mandoc/cgi.c