Re: man.cgi: clean exit when absent or empty manpath.conf

2014-07-18 Thread Ingo Schwarze
Salut Sebastien, Sébastien Marie wrote on Fri, Jul 18, 2014 at 08:50:17AM +0200: > Starting to play with man.cgi (src/usr.bin/mandoc/cgi.c), Thank you for testing. > it seems that man.cgi will segfault if configuration file > is absent or empty. > > Here a patch that display error message and

man.cgi: clean exit when absent or empty manpath.conf

2014-07-17 Thread Sébastien Marie
Hi, Starting to play with man.cgi (src/usr.bin/mandoc/cgi.c), it seems that man.cgi will segfault if configuration file is absent or empty. Here a patch that display error message and 505, like when MAN_DIR is invalid. Note: the segfault occurs in cgi.c:224 (http_parse), that assume req->p is no