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 Sync to 20040421: fix an un...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8cfdbb342618
branches:  trunk
changeset: 473611:8cfdbb342618
user:      tv <tv%pkgsrc.org@localhost>
date:      Wed Apr 21 20:11:55 2004 +0000

description:
Sync to 20040421: fix an uninitialized array member access in pkg_add.

diffstat:

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

diffs (43 lines):

diff -r 037bb6fe234d -r 8cfdbb342618 pkgtools/pkg_install/files/add/perform.c
--- a/pkgtools/pkg_install/files/add/perform.c  Wed Apr 21 19:24:49 2004 +0000
+++ b/pkgtools/pkg_install/files/add/perform.c  Wed Apr 21 20:11:55 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: perform.c,v 1.20 2004/04/11 06:56:11 rh Exp $  */
+/*     $NetBSD: perform.c,v 1.21 2004/04/21 20:11:55 tv Exp $  */
 
 #if HAVE_CONFIG_H
 #include "config.h"
@@ -11,7 +11,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.20 2004/04/11 06:56:11 rh Exp $");
+__RCSID("$NetBSD: perform.c,v 1.21 2004/04/21 20:11:55 tv Exp $");
 #endif
 #endif
 
@@ -143,6 +143,7 @@
        zapLogDir = 0;
        LogDir[0] = '\0';
        strlcpy(playpen, FirstPen, sizeof(playpen));
+       memset(buildinfo, '\0', sizeof(buildinfo));
        inPlace = 0;
 
        /* Are we coming in for a second pass, everything already extracted?
diff -r 037bb6fe234d -r 8cfdbb342618 pkgtools/pkg_install/files/lib/version.h
--- a/pkgtools/pkg_install/files/lib/version.h  Wed Apr 21 19:24:49 2004 +0000
+++ b/pkgtools/pkg_install/files/lib/version.h  Wed Apr 21 20:11:55 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: version.h,v 1.26 2004/04/11 06:56:11 rh Exp $  */
+/*     $NetBSD: version.h,v 1.27 2004/04/21 20:11:55 tv 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 "20040411"
+#define PKGTOOLS_VERSION "20040421"
 
 #endif /* _INST_LIB_VERSION_H_ */



Home | Main Index | Thread Index | Old Index