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/pkg_install/lib Pull up revision 1.28 (request...



details:   https://anonhg.NetBSD.org/src/rev/66256e507486
branches:  netbsd-1-5
changeset: 491341:66256e507486
user:      he <he%NetBSD.org@localhost>
date:      Tue Apr 24 22:25:26 2001 +0000

description:
Pull up revision 1.28 (requested by hubertf):
  Prevent some warnings from being printed several times on the
  same error.

diffstat:

 usr.sbin/pkg_install/lib/plist.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (25 lines):

diff -r a3cde05b35c9 -r 66256e507486 usr.sbin/pkg_install/lib/plist.c
--- a/usr.sbin/pkg_install/lib/plist.c  Tue Apr 24 22:22:20 2001 +0000
+++ b/usr.sbin/pkg_install/lib/plist.c  Tue Apr 24 22:25:26 2001 +0000
@@ -1,11 +1,11 @@
-/*     $NetBSD: plist.c,v 1.26.4.1 2000/07/05 20:38:52 hubertf Exp $   */
+/*     $NetBSD: plist.c,v 1.26.4.2 2001/04/24 22:25:26 he Exp $        */
 
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static const char *rcsid = "from FreeBSD Id: plist.c,v 1.24 1997/10/08 07:48:15 charnier Exp";
 #else
-__RCSID("$NetBSD: plist.c,v 1.26.4.1 2000/07/05 20:38:52 hubertf Exp $");
+__RCSID("$NetBSD: plist.c,v 1.26.4.2 2001/04/24 22:25:26 he Exp $");
 #endif
 #endif
 
@@ -409,6 +409,7 @@
 #ifdef PKGDB_DEBUG
                                                printf("pkgdb_remove(\"%s\")\n", tmp);  /* HF */
 #endif
+                                               errno = 0;
                                                if (pkgdb_remove(tmp)) {
                                                        if (errno) {
                                                                perror("pkgdb_remove");



Home | Main Index | Thread Index | Old Index