Subject: bin/29225: cpio -pdm does not work
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <sjg@crufty.net>
List: netbsd-bugs
Date: 02/04/2005 06:36:00
>Number:         29225
>Category:       bin
>Synopsis:       cpio -pdm does not work
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 04 06:36:00 +0000 2005
>Originator:     Simon J. Gerraty
>Release:        NetBSD 2.0
>Organization:
Zen Programming...
>Environment:
	
	
System: NetBSD void.crufty.net 2.0 NetBSD 2.0 (GENERIC) #0: Wed Dec 1 10:58:25 UTC 2004 builds@build:/big/builds/ab/netbsd-2-0-RELEASE/i386/200411300000Z-obj/big/builds/ab/netbsd-2-0-RELEASE/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
	
find . -print | cpio -pdm /some/where

should replicate all files under . to /some/where, except if the file
under the destination is newer.  The -u option can be used to force
the copy.

That's how cpio has always worked and the man page in 2.0 confirms it.

That's not how cpio in 2.0 works though.  Without the -u option, copies
are skipped if the target file *exists*.


>How-To-Repeat:
	
>Fix:
	

>Unformatted: