summaryrefslogtreecommitdiff
path: root/sys/kern/exec_script.c
diff options
context:
space:
mode:
authorjdolecek <jdolecek@NetBSD.org>2000-11-21 00:37:49 +0000
committerjdolecek <jdolecek@NetBSD.org>2000-11-21 00:37:49 +0000
commitbaae0324b90e27947452a7dca4476ec2541ed880 (patch)
treec16af02b061231b8dbfe3f7455f7f547e4d7e473 /sys/kern/exec_script.c
parent1a5d87c9faf1adf855ca1499bd989f9f80a8d2aa (diff)
restructure struct emul and execsw, in preparation to make emulations LKMable:
* move all exec-type specific information from struct emul to execsw[] and provide single struct emul per emulation * elf: - kern/exec_elf32.c:probe_funcs[] is gone, execsw[] how has one entry per emulation and contains pointer to respective probe function - interp is allocated via MALLOC() rather than on stack - elf_args structure is allocated via MALLOC() rather than malloc() * ecoff: the per-emulation hooks moved from alpha and mips specific code to OSF1 and Ultrix compat code as appropriate, execsw[] has one entry per emulation supporting ecoff with appropriate probe function * the makecmds/probe functions don't set emulation, pointer to emulation is part of appropriate execsw[] entry * constify couple of structures
Diffstat (limited to 'sys/kern/exec_script.c')
-rw-r--r--sys/kern/exec_script.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/exec_script.c b/sys/kern/exec_script.c
index d5ff86bef1a..4c9bc33743d 100644
--- a/sys/kern/exec_script.c
+++ b/sys/kern/exec_script.c
@@ -1,4 +1,4 @@
-/* $NetBSD: exec_script.c,v 1.26 2000/08/03 20:41:21 thorpej Exp $ */
+/* $NetBSD: exec_script.c,v 1.27 2000/11/21 00:37:56 jdolecek Exp $ */
/*
* Copyright (c) 1993, 1994, 1996 Christopher G. Demetriou
@@ -237,7 +237,7 @@ check_shell:
if ((error = check_exec(p, epp)) == 0) {
/* note that we've clobbered the header */
- epp->ep_flags |= EXEC_DESTR;
+ epp->ep_flags |= EXEC_DESTR|EXEC_HASES;
/*
* It succeeded. Unlock the script and