From a3c7e0fc904b613dc28b26f943c8b5f4ec2243a7 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Wed, 7 Dec 2011 11:52:36 +0000 Subject: By default, man.cgi should compile with -static (this was unset by mistake). Also, set a custom CSS for man.cgi catman files. --- cgi.c | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'cgi.c') diff --git a/cgi.c b/cgi.c index 6029d77d..97546ae7 100644 --- a/cgi.c +++ b/cgi.c @@ -423,7 +423,21 @@ resp_search(struct res *r, size_t sz, void *arg) return; } - resp_begin_html(200, NULL); + resp_begin_http(200, NULL); + puts("" "\n" + "" "\n" + " " "\n" + " " "\n" + " " "\n" + " System Manpage Reference" "\n" + " " "\n" + " " "\n" + ""); + resp_searchform((const struct req *)arg); if (0 == sz) @@ -614,9 +628,9 @@ format(const char *file) return; } - snprintf(opts, sizeof(opts), "style=/style.css," + snprintf(opts, sizeof(opts), "style=/man.css," "man=%s/search.html?sec=%%S&expr=%%N," - "includes=/cgi-bin/man.cgi/usr/include/%%I", + /*"includes=/cgi-bin/man.cgi/usr/include/%%I"*/, progname); mparse_result(mp, &mdoc, &man); -- cgit