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: 12/29/2004 11:35:04
Module Name:	src
Committed By:	agc
Date:		Wed Dec 29 11:35:04 UTC 2004

Modified Files:
	src/usr.sbin/pkg_install/add: extract.c main.c perform.c verify.c
	src/usr.sbin/pkg_install/admin: main.c
	src/usr.sbin/pkg_install/create: main.c perform.c 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 path.c pen.c pkgdb.c
	    plist.c str.c version.h

Log Message:
Introduce a new abstraction in the C code, called MaxPathSize.  All
previous occurrences of MAXPATHLEN and FILENAME_MAX have been changed
to use MaxPathSize instead.

If MAXPATHLEN is not defined, then assume a default value of 1024
(this is primarily for use on the Hurd).

The reason for this is that some older platforms define FILENAME_MAX
to be 14, although MAXPATHLEN is 1024. On BSD-derived systems,
FILENAME_MAX And MAXPATHLEN are both 1024.

Bump pkg_install version to 20041226.

These modifications have been tested so far on a NetBSD-current bulk
build.


To generate a diff of this commit:
cvs rdiff -r1.32 -r1.33 src/usr.sbin/pkg_install/add/extract.c
cvs rdiff -r1.33 -r1.34 src/usr.sbin/pkg_install/add/main.c
cvs rdiff -r1.104 -r1.105 src/usr.sbin/pkg_install/add/perform.c
cvs rdiff -r1.5 -r1.6 src/usr.sbin/pkg_install/add/verify.c
cvs rdiff -r1.46 -r1.47 src/usr.sbin/pkg_install/admin/main.c
cvs rdiff -r1.26 -r1.27 src/usr.sbin/pkg_install/create/main.c
cvs rdiff -r1.39 -r1.40 src/usr.sbin/pkg_install/create/perform.c
cvs rdiff -r1.31 -r1.32 src/usr.sbin/pkg_install/create/pl.c
cvs rdiff -r1.33 -r1.34 src/usr.sbin/pkg_install/delete/main.c
cvs rdiff -r1.52 -r1.53 src/usr.sbin/pkg_install/delete/perform.c
cvs rdiff -r1.43 -r1.44 src/usr.sbin/pkg_install/info/main.c
cvs rdiff -r1.57 -r1.58 src/usr.sbin/pkg_install/info/perform.c
cvs rdiff -r1.71 -r1.72 src/usr.sbin/pkg_install/lib/file.c
cvs rdiff -r1.64 -r1.65 src/usr.sbin/pkg_install/lib/ftpio.c
cvs rdiff -r1.72 -r1.73 src/usr.sbin/pkg_install/lib/lib.h
cvs rdiff -r1.6 -r1.7 src/usr.sbin/pkg_install/lib/path.c
cvs rdiff -r1.32 -r1.33 src/usr.sbin/pkg_install/lib/pen.c
cvs rdiff -r1.18 -r1.19 src/usr.sbin/pkg_install/lib/pkgdb.c
cvs rdiff -r1.45 -r1.46 src/usr.sbin/pkg_install/lib/plist.c
cvs rdiff -r1.49 -r1.50 src/usr.sbin/pkg_install/lib/str.c
cvs rdiff -r1.60 -r1.61 src/usr.sbin/pkg_install/lib/version.h

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