Re: cpio not replacing on old file

"Jeremy C. Reed" <[email protected]>
Newsgroups gmane.os.netbsd.help
Message-ID <[email protected]>
> I had same behaviour on a DragonFly BSD box.
> 
> But it works as I expect on Linux with cpio (GNU cpio) 2.6.
> 
> Is this a bug on NetBSD (and DragonFly)?

Now trying again I can't reproduce problem on DragonFly.

Here is example on NetBSD:

glacier:/home/reed/book/dru-FreeBSD-Basics$ cd ~/tmp
glacier:/home/reed/tmp$ date > J
glacier:/home/reed/tmp$ mkdir ~/tmp2
glacier:/home/reed/tmp$ find . -name J | cpio -vvvpdm ../tmp2
../tmp2/./J
../tmp2/./ILS/Open-ILS/src/J
../tmp2/./ILS/J
../tmp2/./ikiwiki-testbed.moved/J
glacier:/home/reed/tmp$ ls -l ../tmp2/./J J
-rw-r-----  1 reed  users  29 Mar 23 12:22 ../tmp2/./J
-rw-r-----  1 reed  users  29 Mar 23 12:22 J
glacier:/home/reed/tmp$ date >> J
glacier:/home/reed/tmp$ ls -l ../tmp2/./J J 
-rw-r-----  1 reed  users  29 Mar 23 12:22 ../tmp2/./J
-rw-r-----  1 reed  users  58 Mar 23 12:22 J
glacier:/home/reed/tmp$ find . -name J | cpio -vvvpdm ../tmp2 
../tmp2/./J
glacier:/home/reed/tmp$ ls -l ../tmp2/./J J                   
-rw-r-----  1 reed  users  29 Mar 23 12:22 ../tmp2/./J
-rw-r-----  1 reed  users  58 Mar 23 12:22 J

No change.

glacier:/home/reed/tmp$ date >> J                             
glacier:/home/reed/tmp$ find . -name J | cpio -vvvpdm ../tmp2 
../tmp2/./J
glacier:/home/reed/tmp$ ls -l ../tmp2/./J J                   
-rw-r-----  1 reed  users  29 Mar 23 12:22 ../tmp2/./J
-rw-r-----  1 reed  users  87 Mar 23 12:24 J

Still no change.

This is:

glacier:/home/reed/tmp$ ident `which cpio`
/bin/cpio:
     $NetBSD: crt0.c,v 1.16 2006/05/17 17:08:54 christos Exp $
     $NetBSD: ar_io.c,v 1.47 2006/02/11 10:43:17 dsl Exp $
     $NetBSD: ar_subs.c,v 1.49 2006/02/11 11:04:57 dsl Exp $
     $NetBSD: buf_subs.c,v 1.27 2006/02/11 10:43:18 dsl Exp $
     $NetBSD: file_subs.c,v 1.59 2006/02/11 10:43:18 dsl Exp $
     $NetBSD: ftree.c,v 1.34 2006/02/11 10:43:18 dsl Exp $
     $NetBSD: gen_subs.c,v 1.33 2006/02/11 10:43:18 dsl Exp $
     $NetBSD: getoldopt.c,v 1.22 2006/02/11 10:43:18 dsl Exp $
     $NetBSD: options.c,v 1.97 2006/04/16 16:20:21 christos Exp $
     $NetBSD: pat_rep.c,v 1.25 2006/04/24 19:00:29 snj Exp $
     $NetBSD: pax.c,v 1.40 2006/02/11 11:04:57 dsl Exp $
     $NetBSD: sel_subs.c,v 1.20 2006/02/11 10:43:18 dsl Exp $
     $NetBSD: tables.c,v 1.27 2006/04/24 19:00:29 snj Exp $
     $NetBSD: tar.c,v 1.64 2006/03/18 05:43:47 christos Exp $
     $NetBSD: tty_subs.c,v 1.18 2006/02/11 10:43:18 dsl Exp $
     $NetBSD: spec.c,v 1.62 2006/04/12 19:49:59 dsl Exp $
     $NetBSD: misc.c,v 1.27 2005/09/29 14:29:03 tron Exp $
     $NetBSD: stat_flags.c,v 1.19 2004/05/25 14:54:55 hannken Exp $
     $NetBSD: pack_dev.c,v 1.8 2004/05/11 17:09:58 christos Exp $
     $NetBSD: cpio.c,v 1.19 2006/02/11 10:43:18 dsl Exp $
     $NetBSD: rmtlib.c,v 1.21 2006/03/19 23:05:50 christos Exp $
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.