diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-12-08 00:48:28 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-12-08 00:48:28 +0000 |
commit | f6b6497b86fd99545be4c226abdff716e901d776 (patch) | |
tree | 9140398c0ded15260e9e3626464f18d71ca7c024 /cgi.c | |
parent | d28d4481302641b36d1ae3a706d45d4c3e05e1cd (diff) | |
download | mandoc-f6b6497b86fd99545be4c226abdff716e901d776.tar.gz |
Look for man.cgi files in the cache, not under the volume path.
Diffstat (limited to 'cgi.c')
-rw-r--r-- | cgi.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |