diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2014-09-03 18:08:27 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2014-09-03 18:08:27 +0000 |
commit | 2dbfdf16737db51001d6a75042ed25ba8bcaea06 (patch) | |
tree | ecd16298f5d5fa46d497cf6c24d503df869eab88 /usr.bin/mandoc/main.c | |
parent | 84376fdb94d04453466a113db08ae41ac993c794 (diff) |
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 'usr.bin/mandoc/main.c')
-rw-r--r-- | usr.bin/mandoc/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mandoc/main.c b/usr.bin/mandoc/main.c index 0b61eb90f0a..689a3c24a5f 100644 --- a/usr.bin/mandoc/main.c +++ b/usr.bin/mandoc/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.98 2014/09/03 05:17:08 schwarze Exp $ */ +/* $OpenBSD: main.c,v 1.99 2014/09/03 18:08:26 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010, 2011, 2012, 2014 Ingo Schwarze <schwarze@openbsd.org> @@ -357,7 +357,7 @@ main(int argc, char *argv[]) while (argc) { 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); |