diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-09-03 18:09:14 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-09-03 18:09:14 +0000 |
commit | 248398820acb6a81f0d92b7a33dc1e449dda483b (patch) | |
tree | 93066814e716198d92cc1458fab4a2eca07bea9a /main.c | |
parent | 02046d75d7ec4c27ec31d04e15c9d9fe018a01ab (diff) | |
download | mandoc-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |