From 63fa4ac8db9aca90a1c8058e0f03f859e0749f7e Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Sun, 26 Mar 2000 14:31:08 +0000 Subject: 2000-03-23 Mark Kettenis * exec.c (do_exec): Set interp.file to MACH_PORT_NULL before the first `goto out'. --- exec/exec.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'exec/exec.c') 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; -- cgit v1.2.3