From 32cb5394cc495e6986770184cc8cfb5a9c55b19a Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Wed, 19 Mar 2014 22:20:43 +0000 Subject: Without the MPARSE_SO option, if the file contains nothing but a single .so request, do not read the file pointed to, but instead let mparse_result() provide the file name pointed to as a return value. To be used by makewhatis(8) in the future. --- cgi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cgi.c') diff --git a/cgi.c b/cgi.c index 413fbfca..3690beb9 100644 --- a/cgi.c +++ b/cgi.c @@ -1,4 +1,4 @@ -/* $Id: cgi.c,v 1.48 2014/03/19 22:05:10 schwarze Exp $ */ +/* $Id: cgi.c,v 1.49 2014/03/19 22:20:43 schwarze Exp $ */ /* * Copyright (c) 2011, 2012 Kristaps Dzonsons * @@ -753,7 +753,7 @@ format(const struct req *req, const char *file) /*"includes=/cgi-bin/man.cgi/usr/include/%%I"*/, progname); - mparse_result(mp, &mdoc, &man); + mparse_result(mp, &mdoc, &man, NULL); if (NULL == man && NULL == mdoc) { resp_baddb(); mparse_free(mp); -- cgit v1.2.3