CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2026/08/30 04:47:23
Modified files:
usr.bin/mandoc : cgi.c
Log message:
Delay starting HTML output until we are sure that we have some data
to offer to the user, either from a manual page file that can actually
be opened or at least a list of links to pages matching the user's query.
When no information whatsoever can be accessed, always return
HTTP 400 Bad Request (e.g. for an unsupported, nonexistent, or unreadable
path or an invalid architecture) or HTTP 500 Internal Server Error (e.g.
for a system call failure, an inaccessible or invalid configuration file,
an inaccessible directory, or a corrupt database).
This also prepares for pledge(2)/unveil(2) improvements by making it
possible to invoke these system calls after open(2)ing the chosen
manual page file.