summaryrefslogtreecommitdiff
path: root/sys/kern/kern_exec.c
diff options
context:
space:
mode:
authorJohn Polstra <jdp@FreeBSD.org>1999-04-03 22:20:03 +0000
committerJohn Polstra <jdp@FreeBSD.org>1999-04-03 22:20:03 +0000
commit4fe88fe6374ee0fd17b670ac28b16cf1c9790832 (patch)
tree5b4ed45beb8ec42a9c55acd2090f5d8e83899f8a /sys/kern/kern_exec.c
parent90aba8be4e9804f1028e3e1c8a93dfd872e35219 (diff)
Notes
Diffstat (limited to 'sys/kern/kern_exec.c')
-rw-r--r--sys/kern/kern_exec.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c
index f961a3a9eb40..c96055d90bd3 100644
--- a/sys/kern/kern_exec.c
+++ b/sys/kern/kern_exec.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: kern_exec.c,v 1.95 1999/01/28 00:57:47 dillon Exp $
+ * $Id: kern_exec.c,v 1.96 1999/02/19 14:25:34 luoqi Exp $
*/
#include <sys/param.h>
@@ -117,6 +117,7 @@ execve(p, uap)
imgp->auxargs = NULL;
imgp->vp = NULL;
imgp->firstpage = NULL;
+ imgp->ps_strings = 0;
/*
* Allocate temporary demand zeroed space for argument and
@@ -309,8 +310,9 @@ interpret:
/* clear "fork but no exec" flag, as we _are_ execing */
p->p_acflag &= ~AFORK;
- /* Set entry address */
- setregs(p, imgp->entry_addr, (u_long)(uintptr_t)stack_base);
+ /* Set values passed into the program in registers. */
+ setregs(p, imgp->entry_addr, (u_long)(uintptr_t)stack_base,
+ imgp->ps_strings);
exec_fail_dealloc: