Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/catman Don't discard all the hard work of setdefent...



details:   https://anonhg.NetBSD.org/src/rev/ed99a2307609
branches:  trunk
changeset: 510124:ed99a2307609
user:      uwe <uwe%NetBSD.org@localhost>
date:      Sun May 20 22:05:30 2001 +0000

description:
Don't discard all the hard work of setdefentries() and uniquepath().
Fixes bin/12742.  Reviewed by jdolecek.

diffstat:

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

diffs (25 lines):

diff -r 150f579b2cbd -r ed99a2307609 usr.sbin/catman/catman.c
--- a/usr.sbin/catman/catman.c  Sun May 20 21:07:58 2001 +0000
+++ b/usr.sbin/catman/catman.c  Sun May 20 22:05:30 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.16 2001/05/20 22:05:30 uwe 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