Skip to content

Commit

Permalink
Make mandb path configurable. makemandb (and related tools) use
Browse files Browse the repository at this point in the history
the path from the _mandb variable from man.conf now.

Set _mandb in man.conf to same value as was used before.

Patch by me, committed by wiz. (Diff imported from NetBSD CVS repo.)
  • Loading branch information
abhinav-upadhyay committed Dec 23, 2012
1 parent 9f32431 commit 18e10d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions whatis.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $NetBSD: whatis.c,v 1.3 2012/02/20 18:27:30 joerg Exp $ */
/* $NetBSD: whatis.c,v 1.4 2012/10/06 15:33:59 wiz Exp $ */
/*-
* Copyright (c) 2012 Joerg Sonnenberger <[email protected]>
* All rights reserved.
Expand Down Expand Up @@ -29,7 +29,7 @@
*/

#include <sys/cdefs.h>
__RCSID("$NetBSD: whatis.c,v 1.3 2012/02/20 18:27:30 joerg Exp $");
__RCSID("$NetBSD: whatis.c,v 1.4 2012/10/06 15:33:59 wiz Exp $");

#include <err.h>
#include <stdio.h>
Expand Down Expand Up @@ -91,7 +91,7 @@ main(int argc, char *argv[])
if (argc == 0)
usage();

if ((db = init_db(MANDB_READONLY)) == NULL)
if ((db = init_db(MANDB_READONLY, MANCONF)) == NULL)
exit(EXIT_FAILURE);

retval = 0;
Expand Down

0 comments on commit 18e10d3

Please sign in to comment.