aboutsummaryrefslogtreecommitdiffstatshomepage
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
commit248398820acb6a81f0d92b7a33dc1e449dda483b (patch)
tree93066814e716198d92cc1458fab4a2eca07bea9a /main.c
parent02046d75d7ec4c27ec31d04e15c9d9fe018a01ab (diff)
downloadmandoc-248398820acb6a81f0d92b7a33dc1e449dda483b.tar.gz
mandoc-248398820acb6a81f0d92b7a33dc1e449dda483b.tar.zst
mandoc-248398820acb6a81f0d92b7a33dc1e449dda483b.zip
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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index 81f2d0c9..5e596603 100644
--- a/main.c
+++ b/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.190 2014/09/03 05:22:45 schwarze Exp $ */
+/* $Id: main.c,v 1.191 2014/09/03 18:09:14 schwarze Exp $ */
/*
* Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010, 2011, 2012, 2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -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);