[Top][All Lists]

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

[Bug-cpio] cpio pass mode fails - ubuntu linux 10.04

From: Ralph P. Sobek
Subject: [Bug-cpio] cpio pass mode fails - ubuntu linux 10.04
Date: Tue, 05 Apr 2011 18:45:18 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20101206 SeaMonkey/2.0.11

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


--Ralph Sobek

reply via email to

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