diff options
author | Mark Kettenis <kettenis@gnu.org> | 2000-03-26 14:31:08 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2000-03-26 14:31:08 +0000 |
commit | 63fa4ac8db9aca90a1c8058e0f03f859e0749f7e (patch) | |
tree | bbb7dbc7f4a1f635e80e6c98e968f6d8675bf0f7 /exec | |
parent | 4c82c5f9bde03d154c0051aa6b54a88700e01939 (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')
-rw-r--r-- | exec/ChangeLog | 5 | ||||
-rw-r--r-- | exec/exec.c | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/exec/ChangeLog b/exec/ChangeLog index c27f6da6..c690ef9c 100644 --- a/exec/ChangeLog +++ b/exec/ChangeLog @@ -1,3 +1,8 @@ +2000-03-23 Mark Kettenis <kettenis@gnu.org> + + * exec.c (do_exec): Set interp.file to MACH_PORT_NULL before the + first `goto out'. + 2000-03-20 Roland McGrath <roland@baalperazim.frob.com> * main.c (trivfs_allow_open): Initialize to zero. 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; |