source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: Look for man.cgi files in the cache, not under the volume path.
@ 2011-12-08  0:48 kristaps
  0 siblings, 0 replies; only message in thread
From: kristaps @ 2011-12-08  0:48 UTC (permalink / raw)
  To: source

Log Message:
-----------
Look for man.cgi files in the cache, not under the volume path.

Modified Files:
--------------
    mdocml:
        cgi.c

Revision Data
-------------
Index: cgi.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/cgi.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -Lcgi.c -Lcgi.c -u -p -r1.16 -r1.17
--- cgi.c
+++ cgi.c
@@ -730,8 +730,8 @@ pg_show(const struct manpaths *ps, const
 	else if (NULL == memchr(fn, '\0', val.size - (fn - cp)))
 		resp_baddb();
 	else {
-		strlcpy(file, ps->paths[vol], MAXPATHLEN);
-		strlcat(file, "/", MAXPATHLEN);
+		strlcpy(file, cache, MAXPATHLEN);
+		strlcpy(file, "/", MAXPATHLEN);
 		strlcat(file, fn, MAXPATHLEN);
 		if (0 == strcmp(cp, "cat"))
 			catman(file);
--
 To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-12-08  0:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-08  0:48 mdocml: Look for man.cgi files in the cache, not under the volume path kristaps

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).