--- embedaddon/php/ext/fileinfo/libmagic/elfclass.h 2012/02/21 23:47:56 1.1 +++ embedaddon/php/ext/fileinfo/libmagic/elfclass.h 2012/05/29 12:34:39 1.1.1.2 @@ -35,6 +35,7 @@ switch (type) { #ifdef ELFCORE case ET_CORE: + flags |= FLAGS_IS_CORE; if (dophn_core(ms, clazz, swap, fd, (off_t)elf_getu(swap, elfhdr.e_phoff), elf_getu16(swap, elfhdr.e_phnum), @@ -58,8 +59,7 @@ (off_t)elf_getu(swap, elfhdr.e_shoff), elf_getu16(swap, elfhdr.e_shnum), (size_t)elf_getu16(swap, elfhdr.e_shentsize), - &flags, - elf_getu16(swap, elfhdr.e_machine)) == -1) + fsize, &flags, elf_getu16(swap, elfhdr.e_machine)) == -1) return -1; break;