]> granicus.if.org Git - file/commitdiff
fix debug info reversed logic
authorChristos Zoulas <christos@zoulas.com>
Sat, 11 Feb 2017 18:12:03 +0000 (18:12 +0000)
committerChristos Zoulas <christos@zoulas.com>
Sat, 11 Feb 2017 18:12:03 +0000 (18:12 +0000)
src/readelf.c

index 4520148b894032ef0211f828f20f8297f05e81ef..d1b71cf7189076f8a18669eda2eaa41466bbb0f4 100644 (file)
@@ -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;