version 1.29, 2011/12/11 00:22:47 |
version 1.31, 2011/12/14 13:36:59 |
Line 792 pg_show(const struct req *req, char *path) |
|
Line 792 pg_show(const struct req *req, char *path) |
|
} |
} |
|
|
memset(&ps, 0, sizeof(struct manpaths)); |
memset(&ps, 0, sizeof(struct manpaths)); |
manpath_manconf("etc/catman.conf", &ps); |
manpath_manconf(&ps, "etc/catman.conf"); |
|
|
if (vol >= (unsigned int)ps.sz) { |
if (vol >= (unsigned int)ps.sz) { |
resp_error400(); |
resp_error400(); |
Line 878 pg_search(const struct req *req, char *path) |
|
Line 878 pg_search(const struct req *req, char *path) |
|
} |
} |
|
|
memset(&ps, 0, sizeof(struct manpaths)); |
memset(&ps, 0, sizeof(struct manpaths)); |
manpath_manconf("etc/catman.conf", &ps); |
manpath_manconf(&ps, "etc/catman.conf"); |
|
|
/* |
/* |
* Poor man's tokenisation: just break apart by spaces. |
* Poor man's tokenisation: just break apart by spaces. |
|
|
progname = ""; |
progname = ""; |
|
|
if (NULL == (css = getenv("CSS_DIR"))) |
if (NULL == (css = getenv("CSS_DIR"))) |
css = "/"; |
css = ""; |
|
|
if (NULL == (host = getenv("HTTP_HOST"))) |
if (NULL == (host = getenv("HTTP_HOST"))) |
host = "localhost"; |
host = "localhost"; |