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


_______________________________________________
Bug-cpio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-cpio

Reply via email to