From: Christos Zoulas Date: Sat, 11 Feb 2017 18:12:03 +0000 (+0000) Subject: fix debug info reversed logic X-Git-Tag: FILE5_31~57 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ee13402cb538509f4594a1ebaabc28b7d511c247;p=file fix debug info reversed logic --- diff --git a/src/readelf.c b/src/readelf.c index 4520148b..d1b71cf7 100644 --- a/src/readelf.c +++ b/src/readelf.c @@ -27,7 +27,7 @@ #include "file.h" #ifndef lint -FILE_RCSID("@(#)$File: readelf.c,v 1.130 2017/01/29 19:34:24 christos Exp $") +FILE_RCSID("@(#)$File: readelf.c,v 1.131 2017/02/10 18:14:01 christos Exp $") #endif #ifdef BUILTIN_ELF @@ -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;