Red Hat Bugzilla – Bug 10581
cpio -c is not in sync with the man page
Last modified: 2008-05-01 11:37:55 EDT
The man page of cpio says:
-c Use the old portable (ASCII) archive format.
But you included a patch:
that makes cpio behave differently:
case 'c': /* Use the old portable ASCII format. */
if (archive_format != arf_unknown)
usage (stderr, 2);
#define SVR4_COMPAT <===================
archive_format = arf_newascii; /* -H newc. */
archive_format = arf_oldascii; /* -H odc. */
This way -c means the new ascii format.
So, archives made with the unpatched cpio (other unix systems, old linux
distros) cannot be read with the rh6.x cpio using just "-c".
find path|cpio -ocB > /dev/st0 (done on other systems)
Cannot be read/recovered with
cpio -icBdum < /dev/st0
While it's ok if the backup is done on rh6.x itself.
I think you should at least update the man page to reflect the different
*** Bug 13806 has been marked as a duplicate of this bug. ***
Man page corrected in cpio-2.4.2-20.