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:
[EMAIL PROTECTED] ~ $ cpio --version
cpio (GNU cpio) 2.7
[EMAIL PROTECTED] ~ $ 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
_______________________________________________
Bug-cpio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-cpio