summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-09-03 18:09:14 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-09-03 18:09:14 +0000
commitc770387f803c840900502ca28d15d35e99650baf (patch)
tree08bbe0df94aca90459dd30338e163a1ce94dbb3a /main.c
parent23314f00a3de516604e28d2a34bde0428f6067fb (diff)
downloadmandoc-c770387f803c840900502ca28d15d35e99650baf.tar.gz
If a manual page is installed gzip(1)ed, let makewhatis(8) take
note in mandoc.db(5), such that man(1) -w and apropos(1) -w can report the correct filename. This is a prerequisite for letting apropos -a and man support gzip'ed manuals in the future, which doesn't work yet.
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 5c13d2f7..5a7db15e 100644
--- a/main.c
+++ b/main.c
@@ -370,7 +370,7 @@ main(int argc, char *argv[])
while (argc) {
#if HAVE_SQLITE3
if (resp != NULL) {
- if (resp->form) {
+ if (resp->form & FORM_SRC) {
/* For .so only; ignore failure. */
chdir(paths.paths[resp->ipath]);
parse(&curp, -1, resp->file, &rc);