Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 10581 - cpio -c is not in sync with the man page
cpio -c is not in sync with the man page
Product: Red Hat Linux
Classification: Retired
Component: cpio (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: bero
: 13806 (view as bug list)
Depends On:
  Show dependency treegraph
Reported: 2000-04-04 11:19 EDT by giulioo
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2000-07-12 16:14:33 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description giulioo 2000-04-04 11:19:07 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               <===================
#ifdef 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".

For instance:
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
Comment 1 Jeff Johnson 2000-07-12 16:14:32 EDT
*** Bug 13806 has been marked as a duplicate of this bug. ***
Comment 2 Jeff Johnson 2000-08-08 12:16:12 EDT
Man page corrected in cpio-2.4.2-20.

Note You need to log in before you can comment on or make changes to this bug.