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

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