From 74f951c91cccc82366b6e504cc10ee2990578cc4 Mon Sep 17 00:00:00 2001
From: Christos Zoulas <christos@zoulas.com>
Date: Sat, 11 Feb 2017 18:12:03 +0000
Subject: [PATCH] fix debug info reversed logic
Upstream-commit: ee13402cb538509f4594a1ebaabc28b7d511c247
Signed-off-by: Kamil Dudka <kdudka@redhat.com>
---
src/readelf.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/readelf.c b/src/readelf.c
index 4520148..d1b71cf 100644
--- a/src/readelf.c
+++ b/src/readelf.c
@@ -1185,7 +1185,7 @@ doshn(struct magic_set *ms, int clazz, int swap, int fd, off_t off, int num,
{
Elf32_Shdr sh32;
Elf64_Shdr sh64;
- int stripped = 1, has_debug_info = 1;
+ int stripped = 1, has_debug_info = 0;
size_t nbadcap = 0;
void *nbuf;
off_t noff, coff, name_off;
--
2.7.4