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

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