pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/pkg_install/files Import the following change...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/29cf428f7d89
branches:  trunk
changeset: 516387:29cf428f7d89
user:      gson <gson%pkgsrc.org@localhost>
date:      Thu Jul 20 11:29:48 2006 +0000

description:
Import the following change to add/perform.c from src to pkgsrc:

 Fix uninitialized variable which was causing pkg_add -u to randomly
 dump core.  This may fix PR pkg/30292.

Also bump the pkgsrc PKGTOOLS_VERSION to 20060720.

diffstat:

 pkgtools/pkg_install/files/add/perform.c |  6 ++++--
 pkgtools/pkg_install/files/lib/version.h |  4 ++--
 2 files changed, 6 insertions(+), 4 deletions(-)

diffs (44 lines):

diff -r 50e783d338a2 -r 29cf428f7d89 pkgtools/pkg_install/files/add/perform.c
--- a/pkgtools/pkg_install/files/add/perform.c  Thu Jul 20 11:24:30 2006 +0000
+++ b/pkgtools/pkg_install/files/add/perform.c  Thu Jul 20 11:29:48 2006 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: perform.c,v 1.42 2006/05/10 04:25:30 jlam Exp $        */
+/*     $NetBSD: perform.c,v 1.43 2006/07/20 11:29:48 gson Exp $        */
 
 #if HAVE_CONFIG_H
 #include "config.h"
@@ -14,7 +14,7 @@
 #if 0
 static const char *rcsid = "from FreeBSD Id: perform.c,v 1.44 1997/10/13 15:03:46 jkh Exp";
 #else
-__RCSID("$NetBSD: perform.c,v 1.42 2006/05/10 04:25:30 jlam Exp $");
+__RCSID("$NetBSD: perform.c,v 1.43 2006/07/20 11:29:48 gson Exp $");
 #endif
 #endif
 
@@ -575,6 +575,8 @@
                                                        plist_t *depp;
                                                        char depC[MaxPathSize];
                                                        
+                                                       depPlist.head = depPlist.tail = NULL;
+
                                                        s = strrchr(pkg2chk, '\n');
                                                        if (s)
                                                                *s = '\0'; /* strip trailing '\n' */
diff -r 50e783d338a2 -r 29cf428f7d89 pkgtools/pkg_install/files/lib/version.h
--- a/pkgtools/pkg_install/files/lib/version.h  Thu Jul 20 11:24:30 2006 +0000
+++ b/pkgtools/pkg_install/files/lib/version.h  Thu Jul 20 11:29:48 2006 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: version.h,v 1.60 2006/07/01 19:37:25 dillo Exp $       */
+/*     $NetBSD: version.h,v 1.61 2006/07/20 11:29:48 gson Exp $        */
 
 /*
  * Copyright (c) 2001 Thomas Klausner.  All rights reserved.
@@ -33,6 +33,6 @@
 #ifndef _INST_LIB_VERSION_H_
 #define _INST_LIB_VERSION_H_
 
-#define PKGTOOLS_VERSION "20060701"
+#define PKGTOOLS_VERSION "20060720"
 
 #endif /* _INST_LIB_VERSION_H_ */



Home | Main Index | Thread Index | Old Index