patch-2.3.99-pre6 linux/arch/mips/kernel/irixelf.c
Next file: linux/arch/mips/kernel/sysirix.c
Previous file: linux/arch/mips/baget/vacserial.c
Back to the patch index
Back to the overall index
- Lines: 19
- Date:
Thu Apr 13 08:11:48 2000
- Orig file:
v2.3.99-pre5/linux/arch/mips/kernel/irixelf.c
- Orig date:
Mon Mar 27 08:08:22 2000
diff -u --recursive --new-file v2.3.99-pre5/linux/arch/mips/kernel/irixelf.c linux/arch/mips/kernel/irixelf.c
@@ -717,16 +717,8 @@
set_fs(old_fs);
kfree(elf_phdata);
- current->personality = PER_IRIX32;
-
- put_exec_domain(current->exec_domain);
- if (current->binfmt && current->binfmt->module)
- __MOD_DEC_USE_COUNT(current->binfmt->module);
- current->exec_domain = lookup_exec_domain(current->personality);
- current->binfmt = &irix_format;
- if (current->binfmt && current->binfmt->module)
- __MOD_INC_USE_COUNT(current->binfmt->module);
-
+ set_personality(PER_IRIX32);
+ set_binfmt(&irix_format);
compute_creds(bprm);
current->flags &= ~PF_FORKNOEXEC;
bprm->p = (unsigned long)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)