When extracting files from a cpio-archive of type "crc", cpio complains about
checksum errors for some files, however the files are extracted correctly.
This happens also when using cpio version 2.11-1 to extract files from archives
created with an older cpio-version (2.10-1) (With cpio 2.10-1, the old archive
could be extraced without CRC-errors; that's why I assume the problem to be in
copy-in mode).
The errors also appears when only verifying the checksum with "cpio -i
--only-verify-crc".
An example-file triggering the bug is the GoOo-release-file for Win32:
go-oo.mirrorbrain.org/stable/win32/3.2/GoOo-3.2-13.exe
The bug can be triggered e.g by
aff@zeus:~# echo GoOo-3.2-13.exe | cpio -o -H crc > test.cpio
383402 blocks
abf@zeus:~# cpio -i --only-verify-crc < test.cpio
cpio: GoOo-3.2-13.exe: checksum error (0x5d90c3303, should be 0xd90c3303)
383402 blocks
However, the file is correctly stored in the archive and can be extracted correctly:
abf@zeus:~# md5sum GoOo-3.2-13.exe
238c3a70223cb33036617fed3c7440c9 GoOo-3.2-13.exe
abf@zeus:~$ rm GoOo-3.2-13.exe
abf@zeus:~$ cpio -i < test.cpio
cpio: GoOo-3.2-13.exe: checksum error (0x5d90c3303, should be 0xd90c3303)
383402 blocks
abf@zeus:~$ md5sum GoOo-3.2-13.exe
238c3a70223cb33036617fed3c7440c9 GoOo-3.2-13.exe
I tried also a 32bit system (squeeze; Linux 2.6.32-3-686; cpio 2.11-1; libc6
2.10.2-6; dpkg 1.15.5.6). There, cpio works correctly with this file (but maybe
a similar problem appears for other files?).