aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mandocdb.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-11-24 12:54:19 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-11-24 12:54:19 +0000
commit5baa64fca628f5c69b2d31cd0d84993824be71c4 (patch)
tree93b7e8699f65ef02d92a319f750a29091034235f /mandocdb.c
parente5e22f9be096d23876973a5d01775222dac5908a (diff)
downloadmandoc-5baa64fca628f5c69b2d31cd0d84993824be71c4.tar.gz
mandoc-5baa64fca628f5c69b2d31cd0d84993824be71c4.tar.zst
mandoc-5baa64fca628f5c69b2d31cd0d84993824be71c4.zip
I say that mandocdb(8) uses "man(1)'s method", but it doesn't. It just uses
the configuration file and ignores MANPATH. Everybody else uses MANPATH (being apropos and man), so why shouldn't we?
Diffstat (limited to 'mandocdb.c')
-rw-r--r--mandocdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mandocdb.c b/mandocdb.c
index a1e1ba36..e3b5abb0 100644
--- a/mandocdb.c
+++ b/mandocdb.c
@@ -1,4 +1,4 @@
-/* $Id: mandocdb.c,v 1.10 2011/11/23 09:52:20 kristaps Exp $ */
+/* $Id: mandocdb.c,v 1.11 2011/11/24 12:54:19 kristaps Exp $ */
/*
* Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -386,7 +386,7 @@ main(int argc, char *argv[])
for (i = 0; i < argc; i++)
dirs.paths[i] = mandoc_strdup(argv[i]);
} else
- manpath_parseconf(&dirs);
+ manpath_parse(&dirs, NULL, NULL);
for (i = 0; i < dirs.sz; i++) {
ibuf[0] = fbuf[0] = '\0';