summaryrefslogtreecommitdiff
path: root/exec/exec.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2000-03-26 14:31:08 +0000
committerMark Kettenis <kettenis@gnu.org>2000-03-26 14:31:08 +0000
commit63fa4ac8db9aca90a1c8058e0f03f859e0749f7e (patch)
treebbb7dbc7f4a1f635e80e6c98e968f6d8675bf0f7 /exec/exec.c
parent4c82c5f9bde03d154c0051aa6b54a88700e01939 (diff)
2000-03-23 Mark Kettenis <kettenis@gnu.org>
* exec.c (do_exec): Set interp.file to MACH_PORT_NULL before the first `goto out'.
Diffstat (limited to 'exec/exec.c')
-rw-r--r--exec/exec.c3
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;