You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
873 B
23 lines
873 B
6 years ago
|
From 226004e007314a0fbb340aec0d5cf0db418a7d5c Mon Sep 17 00:00:00 2001
|
||
|
From: Harald Hoyer <harald@redhat.com>
|
||
|
Date: Wed, 29 Jan 2014 08:35:47 +0100
|
||
|
Subject: [PATCH] skipcpio: fixed signatured check
|
||
|
|
||
|
---
|
||
|
skipcpio/skipcpio.c | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/skipcpio/skipcpio.c b/skipcpio/skipcpio.c
|
||
|
index c9120617..ac0578ea 100644
|
||
|
--- a/skipcpio/skipcpio.c
|
||
|
+++ b/skipcpio/skipcpio.c
|
||
|
@@ -64,7 +64,7 @@ int main(int argc, char **argv)
|
||
|
|
||
|
/* check, if this is a cpio archive */
|
||
|
if ((buf[0] == 0x71 && buf[1] == 0xc7)
|
||
|
- || (buf[0] == '0' && buf[1] == '7' && buf[0] == '0' && buf[1] == '7' && buf[0] == '0' && buf[1] == '1')) {
|
||
|
+ || (buf[0] == '0' && buf[1] == '7' && buf[2] == '0' && buf[3] == '7' && buf[4] == '0' && buf[5] == '1')) {
|
||
|
|
||
|
/* Search for CPIO_END */
|
||
|
do {
|