Subject: CVS commit: [pkgsrc-2009Q3] pkgsrc/pkgtools/pkg_install/files/lib
From: Matthias Scheler
Date: 2009-10-23 12:28:23
Message id: 20091023102823.D58E7175DA@cvs.netbsd.org

Log Message:
Pullup ticket #2921 - requested by joerg
pkg_install: bug fix

Revisions pulled up:
- pkgtools/pkg_install/files/lib/pkgdb.c	1.36
- pkgtools/pkg_install/files/lib/version.h	1.142
---
Module Name:	pkgsrc
Committed By:	joerg
Date:		Thu Oct 22 22:51:29 UTC 2009

Modified Files:
	pkgsrc/pkgtools/pkg_install/files/lib: pkgdb.c version.h

Log Message:
pkg_install-20091009:
Do not overwrite a string with itself using snprintf. This breaks
setting the pkgdb directory internally on Linux. Explicitly check
if the string is the same and otherwise just use xstrdup.

Files:
RevisionActionfile
0modifypkgsrc/pkgtools/pkg_install/files/lib [pkgsrc-2009Q3]/pkgdb.c
0modifypkgsrc/pkgtools/pkg_install/files/lib [pkgsrc-2009Q3]/version.h