Red Hat Bugzilla – Bug 80
CPIO returns 'premature end of file' when extracting (copy in).
Last modified: 2008-05-01 11:37:48 EDT
Trying to install Citrix Winframe Client.
Attempts to 'cpio -icmud < (BIGFILE)'. Errors with
premature end of file. Grabbed cpio-2.4.2-9 src rpm.
Rebuilt, same error. Examine source code. Made cpio manually
with only the sys_errlist patch. the cpio I built manually
then extracted the data from the archive.
I consider this a serious deficency in a necessary
operating system tool.
*** This bug has been marked as a duplicate of 78 ***
*** Bug 165 has been marked as a duplicate of this bug. ***
NOT a duplicate of 78, bug still open.
This problem is derivative on a fix to a previous problem
reported for Red Hat < 5.2, namely that
find /any/dir | cpio -oc | cpio -ictv
failed. At the same time that that problem was fixed, the
interpretation of the "-c" flag was made compatible with Solaris
(and presumably all SVR4 systems). The compatibility
was tested by generating cpio archives with the native
cpio on Linux and Solaris and making sure that the cpio
ball could be read on the other system.
However, SVR4 compatibility changed the mapping of -c onto
GNU cpio archive formats. Prior to Red Hat 5.2, "cpio -c" was
equivalent to "cpio -H odc", while in Red Hat 5.2 "cpio -c"
is equivalent to "cpio -H newc".
So, anyone desiring the "old" behavior of cpio should specify
"-H odc" rather than "-c".
*** Bug 80 has been marked as a duplicate of this bug. ***
Regarding cpio-2.4.2-9.i368.rpm in RedHat 5.2:
Problem noted when installing Citrix client for Linux
(available from www.citrix.com), cpio error when trying to
install. Downgraded to cpio-2.4.2-6 (shipped with RedHat
5.1 CD), problem disappeared.