diff options
Diffstat (limited to 'exec/exec.c')
-rw-r--r-- | exec/exec.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/exec/exec.c b/exec/exec.c index a7666edf..085d4c01 100644 --- a/exec/exec.c +++ b/exec/exec.c @@ -1379,6 +1379,7 @@ do_exec (file_t file, /* Here is the main body of the function. */ + interp.file = MACH_PORT_NULL; /* Catch this error now, rather than later. */ /* XXX For EXEC_DEFAULTS, this is only an error if one of the user's @@ -1431,8 +1432,6 @@ do_exec (file_t file, check_elf_phdr (&e, phdr, &phdr_addr, &phdr_size); } - interp.file = MACH_PORT_NULL; - if (oldtask == MACH_PORT_NULL) flags |= EXEC_NEWTASK; |