Hello folks,

I am copying files from a DVD to a disk structure. I do NOT tell cpio to create directories (-d) since all are supposed to exist! This concerns version : cpio (GNU cpio) 2.10.

I make sure that the receiving directories are all user writable (+w)! Nevertheless, as cpio copies from DVD to disk, it passes the restrictive read-only disk directory to the disk directory which thus becomes NON user writable and therefore the files all get an error message whether they are new or not.

<on DVD directory>

find save2  ! -size 0 -print | cpio -pmv /home/foobar

If I add option -0 (zero) to cpio there are fewer messages but no files copied!

Possibly, if the directories are to be copied, then the restrictive right should only be added after the directory in question has been filled!

Also, it does NOT copy files that have SPACEs in their names whether (-0) null termination is used or not! Even the insertion of antislashes between find and cpio has no effect:

find save2/music ! -size 0 -print | sed 's/ /\\ /g' | cpio -pdm0 /home/foobar

Sincerely,

--Ralph Sobek

Reply via email to