summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-12-08 00:48:28 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-12-08 00:48:28 +0000
commitf6b6497b86fd99545be4c226abdff716e901d776 (patch)
tree9140398c0ded15260e9e3626464f18d71ca7c024
parentd28d4481302641b36d1ae3a706d45d4c3e05e1cd (diff)
downloadmandoc-f6b6497b86fd99545be4c226abdff716e901d776.tar.gz
Look for man.cgi files in the cache, not under the volume path.
-rw-r--r--cgi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cgi.c b/cgi.c
index 026065f4..49c1521b 100644
--- a/cgi.c
+++ b/cgi.c
@@ -730,8 +730,8 @@ pg_show(const struct manpaths *ps, const struct req *req, char *path)
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);