bug-cpio
[Top][All Lists]
Advanced

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

[Bug-cpio] 555 dirs without -depth


From: jidanni
Subject: [Bug-cpio] 555 dirs without -depth
Date: Fri, 21 Dec 2007 01:50:51 +0800

The docs say
  The `-depth' option forces `find' to print of the
  entries in a directory before printing the directory itself.  This
  limits the effects of restrictive directory permissions by printing the
  directory entries in a directory before the directory name itself.

However, let's say the user didn't use -depth, and now
$ cpio -iudvmF /cf/fromjidanni1/tapesscpio
past_life/tapes
cpio: past_life/tapes/samplers: Cannot mkdir: Permission denied
past_life/tapes/samplers
cpio: cannot make directory `past_life/tapes/samplers': Permission denied
cpio: past_life/tapes/samplers/rap1.detex+: Cannot open: No such file or 
directory
past_life/tapes/samplers/rap1.detex+
etc...

Because the archive looks like:
$ cpio -tvF /cf/fromjidanni1/tapesscpio
dr-xr-xr-x   3 jidanni  jidanni         0 Sep  1  1992 past_life/tapes
dr-xr-xr-x   2 jidanni  jidanni         0 Sep  1  1992 past_life/tapes/samplers
-r--r--r--   1 jidanni  jidanni      1884 Sep  1  1992 
past_life/tapes/samplers/rap1.detex+
-r--r--r--   1 jidanni  jidanni      1609 Sep  1  1992 
past_life/tapes/samplers/rap2.txt
-r--r--r--   1 jidanni  jidanni       754 Sep  1  1992 
past_life/tapes/samplers/HousingLyrics
-r--r--r--   1 jidanni  jidanni      1925 Sep  1  1992 past_life/tapes/notes
-r--r--r--   1 jidanni  jidanni     37188 Sep  1  1992 past_life/tapes/tapes
-r--r--r--   1 jidanni  jidanni      1289 Sep  1  1992 past_life/tapes/Makefile
-r--r--r--   1 jidanni  jidanni       222 Sep  1  1992 past_life/tapes/README
89 blocks

Therefore the docs should say how the user should proceed: simple:
become root and now it works. But if one cannot become root...

$ cpio --version
cpio (GNU cpio) 2.9




reply via email to

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