Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/usr.sbin/catman Pull up revision 1.16 (requested by uwe):



details:   https://anonhg.NetBSD.org/src/rev/caa7a6dc6c6d
branches:  netbsd-1-5
changeset: 491845:caa7a6dc6c6d
user:      he <he%NetBSD.org@localhost>
date:      Thu Jun 07 15:50:26 2001 +0000

description:
Pull up revision 1.16 (requested by uwe):
  Fix catman(8) processing of globs in /etc/man.conf.
  Fixes PR#12742, PR#12903.

diffstat:

 usr.sbin/catman/catman.c |  7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diffs (25 lines):

diff -r 3492b390da7c -r caa7a6dc6c6d usr.sbin/catman/catman.c
--- a/usr.sbin/catman/catman.c  Thu Jun 07 15:46:56 2001 +0000
+++ b/usr.sbin/catman/catman.c  Thu Jun 07 15:50:26 2001 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: catman.c,v 1.15 2000/05/29 21:05:34 jdolecek Exp $       */
+/*      $NetBSD: catman.c,v 1.15.2.1 2001/06/07 15:50:26 he Exp $       */
 
 /*
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -325,14 +325,11 @@
 static void
 catman(void)
 {
-       TAG *pathp;
        ENTRY *e_path;
        const char *mandir;
        char catdir[PATH_MAX], *cp;
 
-
-       pathp = getlist("_default");
-       for(e_path = pathp->list.tqh_first; e_path;
+       for(e_path = defp->list.tqh_first; e_path;
                                e_path = e_path->q.tqe_next) {
                mandir = e_path->s;
                strcpy(catdir, mandir);



Home | Main Index | Thread Index | Old Index