bug-cpio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

cpio not reporting CRC error in exit code


From: Kent Dorfman
Subject: cpio not reporting CRC error in exit code
Date: Wed, 30 Sep 2020 18:47:53 -0400

Is it a correct interpretation of the docs to expect that CRC errors
in an archive should set the CPIO exit error code to non-zero?

I'm storing CPIO archives on raw partitions, to be expanded onto
ramdisks at bootup, in an environment where the raw flash may become
corrupted by radiation...so several copies exist and the CRC is
validation upon extraction.

Consider the following in CPIO 2.12.  I use distros so that I don't
have to track individual bug fixes...will update when my distro goes
to a newer version.  I don't know if 2.13 addresses this issue.

------------------------------
$ cpio -iH crc < /dev/loop0p6
cpio: config/README.txt: checksum error (0x7079, should be 0x7159)
36734 blocks
$ echo $?
0



reply via email to

[Prev in Thread] Current Thread [Next in Thread]