bug-cpio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-cpio] What am I doing wrong?


From: Alasdair Thomson
Subject: [Bug-cpio] What am I doing wrong?
Date: Sat, 14 Apr 2007 12:48:52 -0000
User-agent: Thunderbird 1.5.0.10 (X11/20070305)

What would cause cpio to stop working properly? I've always used it to copy directory trees from one place to another keeping the ownership and permissions intact, using:

find . -depth -print | cpio -pdmv /new/mnt/point

But now it's stopped working - regular files are owned by root and the permissions are not set. What could possibly cause this? For example, this is the original file system:

drwxr-xr-x  2 thomsona users     4096 2007-03-24 00:30 Office Documents
-rw-------  1 thomsona users     7846 2007-04-12 22:57 offsets.ods
-rw-r--r--  1 thomsona users     8705 2007-04-10 23:55 partitions.ods
drwxr-xr-x  2 thomsona users     4096 2007-03-20 19:36 pdf-files

And here is the copy:

drwxr-xr-x  2 thomsona users     4096 2007-03-24 00:30 Office Documents
-rw-------  1 root     root      7846 2007-04-14 10:25 offsets.ods
-rw-------  1 root     root      8705 2007-04-14 10:24 partitions.ods
drwxr-xr-x  2 thomsona users     4096 2007-03-20 19:36 pdf-files

Help! I've used cpio like this for the past 15 years without any problems on various Unix systems. Is this a bug or is there something I haven't done?

I'm using gnu cpio V2.7 on gentoo:

address@hidden ~ $ cpio --version
cpio (GNU cpio) 2.7
address@hidden ~ $ uname -a
Linux barney 2.6.19-gentoo-r5 #5 SMP PREEMPT Thu Apr 12 14:01:06 BST 2007 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4600+ AuthenticAMD GNU/Linux






reply via email to

[Prev in Thread] Current Thread [Next in Thread]