diff options
author | Maxim Sobolev <sobomax@FreeBSD.org> | 2005-01-29 23:12:00 +0000 |
---|---|---|
committer | Maxim Sobolev <sobomax@FreeBSD.org> | 2005-01-29 23:12:00 +0000 |
commit | 610ecfe035fa08e39d4f6f6a247a16b7e60188e7 (patch) | |
tree | c697d47092272c8c6973b42ba0a424e9763f7ce5 /sys/kern/imgact_aout.c | |
parent | 3fcd9325ec61ead859015f90f524cda56ef9d347 (diff) |
o Split out kernel part of execve(2) syscall into two parts: one that
copies arguments into the kernel space and one that operates
completely in the kernel space;
o use kernel-only version of execve(2) to kill another stackgap in
linuxlator/i386.
Obtained from: DragonFlyBSD (partially)
MFC after: 2 weeks
Notes
Notes:
svn path=/head/; revision=140992
Diffstat (limited to 'sys/kern/imgact_aout.c')
-rw-r--r-- | sys/kern/imgact_aout.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/kern/imgact_aout.c b/sys/kern/imgact_aout.c index 9263384ebf7b..12086fa3a06f 100644 --- a/sys/kern/imgact_aout.c +++ b/sys/kern/imgact_aout.c @@ -90,7 +90,7 @@ aout_fixup(stack_base, imgp) struct image_params *imgp; { - return (suword(--(*stack_base), imgp->argc)); + return (suword(--(*stack_base), imgp->args->argc)); } static int @@ -187,11 +187,6 @@ exec_aout_imgact(imgp) } PROC_UNLOCK(imgp->proc); - /* copy in arguments and/or environment from old process */ - error = exec_extract_strings(imgp); - if (error) - return (error); - /* * Destroy old process VM and create a new one (with a new stack) */ |