Blame 0020-skipcpio-skipcpio.c-linux-kernel-only-accepts-070701.patch

Harald Hoyer 0840a3
From 6318baa45f2f09ecd821eddf401270d947664f1d Mon Sep 17 00:00:00 2001
Harald Hoyer 0840a3
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer 0840a3
Date: Tue, 7 Jul 2015 13:26:38 +0200
Harald Hoyer 0840a3
Subject: [PATCH] skipcpio/skipcpio.c: linux kernel only accepts "070701"
Harald Hoyer 0840a3
 signature
Harald Hoyer 0840a3
Harald Hoyer 0840a3
don't bother with other signatures
Harald Hoyer 0840a3
---
Harald Hoyer 0840a3
 skipcpio/skipcpio.c | 3 +--
Harald Hoyer 0840a3
 1 file changed, 1 insertion(+), 2 deletions(-)
Harald Hoyer 0840a3
Harald Hoyer 0840a3
diff --git a/skipcpio/skipcpio.c b/skipcpio/skipcpio.c
Harald Hoyer 0840a3
index 445d7f6..3069981 100644
Harald Hoyer 0840a3
--- a/skipcpio/skipcpio.c
Harald Hoyer 0840a3
+++ b/skipcpio/skipcpio.c
Harald Hoyer 0840a3
@@ -60,8 +60,7 @@ int main(int argc, char **argv)
Harald Hoyer 0840a3
         fseek(f, 0, SEEK_SET);
Harald Hoyer 0840a3
 
Harald Hoyer 0840a3
         /* check, if this is a cpio archive */
Harald Hoyer 0840a3
-        if ((buf[0] == 0x71 && buf[1] == 0xc7)
Harald Hoyer 0840a3
-            || (buf[0] == '0' && buf[1] == '7' && buf[2] == '0' && buf[3] == '7' && buf[4] == '0' && buf[5] == '1')) {
Harald Hoyer 0840a3
+        if (buf[0] == '0' && buf[1] == '7' && buf[2] == '0' && buf[3] == '7' && buf[4] == '0' && buf[5] == '1') {
Harald Hoyer 0840a3
                 long pos = 0;
Harald Hoyer 0840a3
 
Harald Hoyer 0840a3
                 /* Search for CPIO_END */