Bug 80

Summary: CPIO returns 'premature end of file' when extracting (copy in).
Product: [Retired] Red Hat Linux Reporter: gjw
Component: cpioAssignee: bero
Severity: high Docs Contact:
Priority: high    
Version: 5.2CC: hartr, justink
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1998-12-06 01:21:38 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description gjw 1998-11-15 20:04:04 UTC
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.

Comment 1 Bill Nottingham 1998-11-16 13:51:59 UTC
*** This bug has been marked as a duplicate of 78 ***

Comment 2 Preston Brown 1998-11-23 12:20:59 UTC
*** Bug 165 has been marked as a duplicate of this bug. ***

Comment 3 Preston Brown 1998-11-23 12:22:59 UTC
NOT a duplicate of 78, bug still open.

Comment 4 Preston Brown 1998-11-23 12:23:59 UTC
*** Bug 165 has been marked as a duplicate of this bug. ***

Comment 5 Jeff Johnson 1998-12-06 01:21:59 UTC
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".

Comment 6 Jeff Johnson 1998-12-17 23:06:59 UTC
*** 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.

Ben Eavey