Subject: CVS commit: src/usr.sbin/pkg_install
To: None <source-changes@netbsd.org>
From: Alistair G. Crooks <agc@netbsd.org>
List: source-changes
Date: 01/05/2003 23:27:35
Module Name:	src
Committed By:	agc
Date:		Sun Jan  5 21:27:35 UTC 2003

Modified Files:
	src/usr.sbin/pkg_install/add: extract.c perform.c
	src/usr.sbin/pkg_install/admin: main.c
	src/usr.sbin/pkg_install/create: pl.c
	src/usr.sbin/pkg_install/delete: main.c perform.c
	src/usr.sbin/pkg_install/info: main.c perform.c
	src/usr.sbin/pkg_install/lib: file.c ftpio.c lib.h lpkg.c path.c pen.c
	    pkgdb.c plist.c str.c

Log Message:
Use EXIT_FAILURE, rather than hardcoding a value of '1' in err(3) and
errx(3).

Plug a memory leak by modifying the signature of
_pkgdb_getPKGDB_FILE() to take a buffer and its size, and fill in that
buffer and return it.


To generate a diff of this commit:
cvs rdiff -r1.26 -r1.27 src/usr.sbin/pkg_install/add/extract.c
cvs rdiff -r1.75 -r1.76 src/usr.sbin/pkg_install/add/perform.c
cvs rdiff -r1.29 -r1.30 src/usr.sbin/pkg_install/admin/main.c
cvs rdiff -r1.23 -r1.24 src/usr.sbin/pkg_install/create/pl.c
cvs rdiff -r1.20 -r1.21 src/usr.sbin/pkg_install/delete/main.c
cvs rdiff -r1.38 -r1.39 src/usr.sbin/pkg_install/delete/perform.c
cvs rdiff -r1.31 -r1.32 src/usr.sbin/pkg_install/info/main.c
cvs rdiff -r1.40 -r1.41 src/usr.sbin/pkg_install/info/perform.c
cvs rdiff -r1.56 -r1.57 src/usr.sbin/pkg_install/lib/file.c
cvs rdiff -r1.48 -r1.49 src/usr.sbin/pkg_install/lib/ftpio.c
cvs rdiff -r1.44 -r1.45 src/usr.sbin/pkg_install/lib/lib.h
cvs rdiff -r1.3 -r1.4 src/usr.sbin/pkg_install/lib/lpkg.c
cvs rdiff -r1.4 -r1.5 src/usr.sbin/pkg_install/lib/path.c
cvs rdiff -r1.22 -r1.23 src/usr.sbin/pkg_install/lib/pen.c
cvs rdiff -r1.9 -r1.10 src/usr.sbin/pkg_install/lib/pkgdb.c
cvs rdiff -r1.35 -r1.36 src/usr.sbin/pkg_install/lib/plist.c
cvs rdiff -r1.41 -r1.42 src/usr.sbin/pkg_install/lib/str.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.