From e6a70a076ec1a3b89ab54804de09c22f29be24a5 Mon Sep 17 00:00:00 2001 From: Vincent Renardias Date: Wed, 25 Feb 1998 20:44:32 +0000 Subject: Wed, 25 Feb 1998 21:41:18 +0100 [Vincent] - if man:/usr/man/manX/foo.X doesn't exist, check if man:/usr/man/manX/foo.X.gz does. --- src/man2html/yelp-man2html.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/man2html/yelp-man2html.c b/src/man2html/yelp-man2html.c index 7bc4e5a2..48e279f4 100644 --- a/src/man2html/yelp-man2html.c +++ b/src/man2html/yelp-man2html.c @@ -3640,7 +3640,15 @@ static char *search_manpath(char *name) } strmaxcpy(smfbuf, manpath[i], LARGE_STR_MAX); strmaxcat(smfbuf, name, LARGE_STR_MAX); - if (stat(smfbuf, &stbuf) !=-1) return smfbuf; + if (stat(smfbuf, &stbuf) !=-1) { + return smfbuf; + } else { + strmaxcpy(smfbuf, manpath[i], LARGE_STR_MAX); + strmaxcat(smfbuf, name, LARGE_STR_MAX); + strmaxcat(smfbuf, ".gz", LARGE_STR_MAX); + if (stat(smfbuf, &stbuf) !=-1) + return smfbuf; + } } return NULL; } -- cgit v1.2.1