Commit d6806799 authored by David Mosberger's avatar David Mosberger Committed by Linus Torvalds

[PATCH] binfmt_elf.c: do SET_PERSONALITY() for static binaries

Pick up binfmt_elf.c SET_PERSONALITY() fix from 2.4.18.
parent 920f3d58
......@@ -548,8 +548,12 @@ static int load_elf_binary(struct linux_binprm * bprm, struct pt_regs * regs)
// printk(KERN_WARNING "ELF: Ambiguous type, using ELF\n");
interpreter_type = INTERPRETER_ELF;
}
} else {
/* Executables without an interpreter also need a personality */
SET_PERSONALITY(elf_ex, ibcs2_interpreter);
}
/* OK, we are done with that, now set up the arg stuff,
and then start this sucker up */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment