Blame SOURCES/0117-skipcpio-fixed-signatured-check.patch

a56a5e
From 226004e007314a0fbb340aec0d5cf0db418a7d5c Mon Sep 17 00:00:00 2001
966cef
From: Harald Hoyer <harald@redhat.com>
966cef
Date: Wed, 29 Jan 2014 08:35:47 +0100
966cef
Subject: [PATCH] skipcpio: fixed signatured check
966cef
966cef
---
966cef
 skipcpio/skipcpio.c | 2 +-
966cef
 1 file changed, 1 insertion(+), 1 deletion(-)
966cef
966cef
diff --git a/skipcpio/skipcpio.c b/skipcpio/skipcpio.c
1755ca
index c9120617..ac0578ea 100644
966cef
--- a/skipcpio/skipcpio.c
966cef
+++ b/skipcpio/skipcpio.c
966cef
@@ -64,7 +64,7 @@ int main(int argc, char **argv)
966cef
 
966cef
         /* check, if this is a cpio archive */
966cef
         if ((buf[0] == 0x71 && buf[1] == 0xc7)
966cef
-            || (buf[0] == '0' && buf[1] == '7' && buf[0] == '0' && buf[1] == '7' && buf[0] == '0' && buf[1] == '1')) {
966cef
+            || (buf[0] == '0' && buf[1] == '7' && buf[2] == '0' && buf[3] == '7' && buf[4] == '0' && buf[5] == '1')) {
966cef
 
966cef
                 /* Search for CPIO_END */
966cef
                 do {