Subject: CVS commit: src/bin/cp
To: None <source-changes@NetBSD.org>
From: Jan Schaumann <jschauma@netbsd.org>
List: source-changes
Date: 07/15/2006 02:09:48
Module Name:	src
Committed By:	jschauma
Date:		Sat Jul 15 02:09:48 UTC 2006

Modified Files:
	src/bin/cp: cp.1 cp.c extern.h utils.c

Log Message:
As suggested on tech-userlevel:
"-R" claims:
 -R	[...] Created directories have the same mode as the corre-
	sponding source directory, unmodified
	by the process' umask.

Make this actually true.

In addition, make '-P' (no symbolic links are followed) apply even if
'-R' is not specified.  This allows users to overwrite symbolic links
with files and/or to copy symbolic links over a file without indirecting
through the link (ie a copy of a link turns the target into a link, not
a copy of the file pointed to by the source).


To generate a diff of this commit:
cvs rdiff -r1.26 -r1.27 src/bin/cp/cp.1
cvs rdiff -r1.41 -r1.42 src/bin/cp/cp.c
cvs rdiff -r1.12 -r1.13 src/bin/cp/extern.h
cvs rdiff -r1.29 -r1.30 src/bin/cp/utils.c

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