]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
skipcpio/skipcpio.c: linux kernel only accepts "070701" signature
authorHarald Hoyer <harald@redhat.com>
Tue, 7 Jul 2015 11:26:38 +0000 (13:26 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 7 Jul 2015 11:44:13 +0000 (13:44 +0200)
don't bother with other signatures

skipcpio/skipcpio.c

index 445d7f6509429a9ce3024e2cb8a7204bf9230610..30699816d5c5da312aa77271c68071b79130341e 100644 (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 */