diff options
Diffstat (limited to 'fs/binfmt_misc.c')
| -rw-r--r-- | fs/binfmt_misc.c | 5 | 
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/binfmt_misc.c b/fs/binfmt_misc.c index 9be335fb8a7..0c8869fdd14 100644 --- a/fs/binfmt_misc.c +++ b/fs/binfmt_misc.c @@ -172,7 +172,10 @@ static int load_misc_binary(struct linux_binprm *bprm)  		goto _error;  	bprm->argc ++; -	bprm->interp = iname;	/* for binfmt_script */ +	/* Update interp in case binfmt_script needs it. */ +	retval = bprm_change_interp(iname, bprm); +	if (retval < 0) +		goto _error;  	interp_file = open_exec (iname);  	retval = PTR_ERR (interp_file);  |