|
@@ -120,8 +120,6 @@ static int load_misc_binary(struct linux_binprm *bprm, struct pt_regs *regs)
|
|
if (bprm->misc_bang)
|
|
if (bprm->misc_bang)
|
|
goto _ret;
|
|
goto _ret;
|
|
|
|
|
|
- bprm->misc_bang = 1;
|
|
|
|
-
|
|
|
|
/* to keep locking time low, we copy the interpreter string */
|
|
/* to keep locking time low, we copy the interpreter string */
|
|
read_lock(&entries_lock);
|
|
read_lock(&entries_lock);
|
|
fmt = check_file(bprm);
|
|
fmt = check_file(bprm);
|
|
@@ -199,6 +197,8 @@ static int load_misc_binary(struct linux_binprm *bprm, struct pt_regs *regs)
|
|
if (retval < 0)
|
|
if (retval < 0)
|
|
goto _error;
|
|
goto _error;
|
|
|
|
|
|
|
|
+ bprm->misc_bang = 1;
|
|
|
|
+
|
|
retval = search_binary_handler (bprm, regs);
|
|
retval = search_binary_handler (bprm, regs);
|
|
if (retval < 0)
|
|
if (retval < 0)
|
|
goto _error;
|
|
goto _error;
|