diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1997-04-29 21:13:14 +0000 |
---|---|---|
committer | <ralf@linux-mips.org> | 1997-04-29 21:13:14 +0000 |
commit | 19c9bba94152148523ba0f7ef7cffe3d45656b11 (patch) | |
tree | 40b1cb534496a7f1ca0f5c314a523c69f1fee464 /fs/binfmt_script.c | |
parent | 7206675c40394c78a90e74812bbdbf8cf3cca1be (diff) |
Import of Linux/MIPS 2.1.36
Diffstat (limited to 'fs/binfmt_script.c')
-rw-r--r-- | fs/binfmt_script.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/binfmt_script.c b/fs/binfmt_script.c index 9050a106c..1bd2f0d10 100644 --- a/fs/binfmt_script.c +++ b/fs/binfmt_script.c @@ -10,6 +10,7 @@ #include <linux/stat.h> #include <linux/malloc.h> #include <linux/binfmts.h> +#include <linux/init.h> static int do_load_script(struct linux_binprm *bprm,struct pt_regs *regs) { @@ -76,7 +77,6 @@ static int do_load_script(struct linux_binprm *bprm,struct pt_regs *regs) /* * OK, now restart the process with the interpreter's inode. */ - bprm->filename = interp; retval = open_namei(interp, 0, 0, &bprm->inode, NULL); if (retval) return retval; @@ -100,11 +100,12 @@ struct linux_binfmt script_format = { #ifndef MODULE NULL, 0, load_script, NULL, NULL #else - NULL, &mod_use_count_, load_script, NULL, NULL + NULL, &__this_module, load_script, NULL, NULL #endif }; -int init_script_binfmt(void) { +__initfunc(int init_script_binfmt(void)) +{ return register_binfmt(&script_format); } |