diff options
Diffstat (limited to 'fs/binfmt_script.c')
-rw-r--r-- | fs/binfmt_script.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/binfmt_script.c b/fs/binfmt_script.c index 1610a91637e5..5027a3e14922 100644 --- a/fs/binfmt_script.c +++ b/fs/binfmt_script.c | |||
@@ -80,7 +80,9 @@ static int load_script(struct linux_binprm *bprm) | |||
80 | retval = copy_strings_kernel(1, &i_name, bprm); | 80 | retval = copy_strings_kernel(1, &i_name, bprm); |
81 | if (retval) return retval; | 81 | if (retval) return retval; |
82 | bprm->argc++; | 82 | bprm->argc++; |
83 | bprm->interp = interp; | 83 | retval = bprm_change_interp(interp, bprm); |
84 | if (retval < 0) | ||
85 | return retval; | ||
84 | 86 | ||
85 | /* | 87 | /* |
86 | * OK, now restart the process with the interpreter's dentry. | 88 | * OK, now restart the process with the interpreter's dentry. |