]> git.hungrycats.org Git - linux/commitdiff
[PATCH] binfmt_elf.c: do SET_PERSONALITY() for static binaries
authorDavid Mosberger <davidm@napali.hpl.hp.com>
Fri, 15 Mar 2002 07:45:32 +0000 (23:45 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Fri, 15 Mar 2002 07:45:32 +0000 (23:45 -0800)
Pick up binfmt_elf.c SET_PERSONALITY() fix from 2.4.18.

fs/binfmt_elf.c

index a4a35fcf7f812eee38ffd9e3991aa3a693e22f5c..a52245622b5ba85865e0aa595ecd1eca5b3e2af7 100644 (file)
@@ -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 */