skipcpio/skipcpio.c: linux kernel only accepts "070701" signature

don't bother with other signatures
This commit is contained in:
Harald Hoyer 2015-07-07 13:26:38 +02:00
parent 3d579309cd
commit 6318baa45f

View File

@ -60,8 +60,7 @@ int main(int argc, char **argv)
fseek(f, 0, SEEK_SET);
/* check, if this is a cpio archive */
if ((buf[0] == 0x71 && buf[1] == 0xc7)
|| (buf[0] == '0' && buf[1] == '7' && buf[2] == '0' && buf[3] == '7' && buf[4] == '0' && buf[5] == '1')) {
if (buf[0] == '0' && buf[1] == '7' && buf[2] == '0' && buf[3] == '7' && buf[4] == '0' && buf[5] == '1') {
long pos = 0;
/* Search for CPIO_END */