skipcpio/skipcpio.c: linux kernel only accepts "070701" signature
don't bother with other signaturesmaster
parent
3d579309cd
commit
6318baa45f
skipcpio
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue