- if (elf_ex.e_ident[0] != 0x7f ||
- strncmp(&elf_ex.e_ident[1], "ELF", 3) != 0)
+ if (strncmp(elf_ex.e_ident, ELFMAG, SELFMAG))
goto out_putf;
/* First of all, some simple consistency checks */
diff -urN linux/fs/binfmt_em86.c linux-2.3.20-binfmt/fs/binfmt_em86.c
--- linux/fs/binfmt_em86.c Tue Aug 3 18:18:39 1999
+++ linux-2.3.20-binfmt/fs/binfmt_em86.c Sun Oct 10 15:19:26 1999
@@ -30,11 +30,8 @@
/* Make sure this is a Linux/Intel ELF executable... */
elf_ex = *((struct elfhdr *)bprm->buf);