diff options
author | rwatson <rwatson@FreeBSD.org> | 2002-11-05 01:59:56 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2002-11-05 01:59:56 +0000 |
commit | e05e16efa1b6fdbeab87f3c35f6dd106ed1789c9 (patch) | |
tree | ae3d42ca3a43dfe5238a6503057532919bbbc2a3 /sys/kern/imgact_shell.c | |
parent | b2a246fa7430c692dccca295c0c132324c419662 (diff) | |
download | FreeBSD-src-e05e16efa1b6fdbeab87f3c35f6dd106ed1789c9.zip FreeBSD-src-e05e16efa1b6fdbeab87f3c35f6dd106ed1789c9.tar.gz |
Remove reference to struct execve_args from struct imgact, which
describes an image activation instance. Instead, make use of the
existing fname structure entry, and introduce two new entries,
userspace_argv, and userspace_envv. With the addition of
mac_execve(), this divorces the image structure from the specifics
of the execve() system call, removes a redundant pointer, etc.
No semantic change from current behavior, but it means that the
structure doesn't depend on syscalls.master-generated includes.
There seems to be some redundant initialization of imgact entries,
which I have maintained, but which could probably use some cleaning
up at some point.
Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories
Diffstat (limited to 'sys/kern/imgact_shell.c')
-rw-r--r-- | sys/kern/imgact_shell.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/imgact_shell.c b/sys/kern/imgact_shell.c index 8480fcc..3df4890 100644 --- a/sys/kern/imgact_shell.c +++ b/sys/kern/imgact_shell.c @@ -120,7 +120,7 @@ exec_shell_imgact(imgp) } } - imgp->argv0 = imgp->uap->fname; + imgp->argv0 = imgp->fname; return(0); } |