- else
- for (p = getdb(); *p; ++p)
- apropos(argv, *p, 0);
-
- if (!foundman) {
- (void)fprintf(stderr,
- "apropos: : no %s file found.\n", _PATH_WHATIS);
- exit(1);
+ else {
+ config(conffile);
+ ep = (tp = getlist("_whatdb")) == NULL ?
+ NULL : tp->list.tqh_first;
+ for (; ep != NULL; ep = ep->q.tqe_next)
+ apropos(argv, ep->s, 0);