Subject: CVS commit: [netbsd-4] src
To: None <>
From: Geert Hendrickx <>
List: source-changes
Date: 08/21/2006 10:59:53
Module Name:	src
Committed By:	ghen
Date:		Mon Aug 21 10:59:53 UTC 2006

Modified Files:
	src/bin/cp [netbsd-4]: cp.c
	src/regress/bin/cp [netbsd-4]:

Log Message:
Pull up following revision(s) (requested by tron in ticket #30):
	regress/bin/cp/ revision 1.2
	regress/bin/cp/ revision 1.3
	bin/cp/cp.c: revision 1.45
	bin/cp/cp.c: revision 1.46
Avoid errors like "cp: /foo/bar/directory" exists if cp(1) is used to
copy multiple directories and the first one doesn't exist in the
target directiry but another one (e.g. the second) does.
initialize dne variable in the beginning, then move the resetting of
this variable down into the second (ie post-order) pass to make cp
pass all regression tests again.
allow each dir_to_dir test to be run individually without having to
rely on previous tests that set up the files and directories;
while here, clarify in each error message where exactly the error occurred
add a regression test for copying several subdirs into a target directory
where some subdirs already exist

To generate a diff of this commit:
cvs rdiff -r1.44 -r1.44.2.1 src/bin/cp/cp.c
cvs rdiff -r1.1 -r1.1.2.1 src/regress/bin/cp/

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