=================================================================== RCS file: /cvs/mandoc/manpath.c,v retrieving revision 1.40 retrieving revision 1.41 diff -u -p -r1.40 -r1.41 --- mandoc/manpath.c 2019/07/10 19:39:01 1.40 +++ mandoc/manpath.c 2020/02/10 14:42:10 1.41 @@ -1,4 +1,4 @@ -/* $Id: manpath.c,v 1.40 2019/07/10 19:39:01 schwarze Exp $ */ +/* $Id: manpath.c,v 1.41 2020/02/10 14:42:10 schwarze Exp $ */ /* * Copyright (c) 2011,2014,2015,2017-2019 Ingo Schwarze * Copyright (c) 2011 Kristaps Dzonsons @@ -163,7 +163,7 @@ manconf_free(struct manconf *conf) static void manconf_file(struct manconf *conf, const char *file) { - const char *const toks[] = { "manpath", "output", "_whatdb" }; + const char *const toks[] = { "manpath", "output" }; char manpath_default[] = MANPATH_DEFAULT; FILE *stream; @@ -200,13 +200,6 @@ manconf_file(struct manconf *conf, const char *file) } switch (tok) { - case 2: /* _whatdb */ - while (ep > cp && ep[-1] != '/') - ep--; - if (ep == cp) - continue; - *ep = '\0'; - /* FALLTHROUGH */ case 0: /* manpath */ manpath_add(&conf->manpath, cp, '\0'); *manpath_default = '\0';