summaryrefslogtreecommitdiff
path: root/exec/exec.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-07-19 23:27:21 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-07-19 23:27:21 +0000
commit4238b029dfb3696f2b1a8968b7d859c8c3e2e956 (patch)
tree0565ef7b478f46076f8b6158276c6fbd54bade7d /exec/exec.c
parentca9d0a3d2ff68026fea0da423709de03403c8857 (diff)
Formerly exec.c.~75~
Diffstat (limited to 'exec/exec.c')
-rw-r--r--exec/exec.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/exec/exec.c b/exec/exec.c
index 2e489711..0bdfa271 100644
--- a/exec/exec.c
+++ b/exec/exec.c
@@ -1208,6 +1208,7 @@ S_exec_setexecdata (mach_port_t me,
kern_return_t
S_fsys_getroot (fsys_t fsys,
+ mach_port_t dotdot,
uid_t *uids, u_int nuids,
gid_t *gids, u_int ngids,
int flags,
@@ -1220,6 +1221,8 @@ S_fsys_getroot (fsys_t fsys,
associated access-restricted realnode port which file ops get
forwarded to. */
+ mach_port_deallocate (mach_task_self (), dotdot);
+
*rootfile = execserver;
*rootfilePoly = MACH_MSG_TYPE_MAKE_SEND;
@@ -1253,9 +1256,7 @@ kern_return_t
S_fsys_startup (mach_port_t bootstrap,
fsys_t control,
mach_port_t *node,
- mach_msg_type_name_t *realnodePoly,
- mach_port_t *dotdot,
- mach_msg_type_name_t *dotdotPoly)
+ mach_msg_type_name_t *realnodePoly)
{
return EOPNOTSUPP;
}
@@ -1437,7 +1438,7 @@ int
main (int argc, char **argv)
{
error_t err;
- mach_port_t boot, dotdot;
+ mach_port_t boot;
/* XXX */
stdout = mach_open_devstream (getdport (1), "w");
@@ -1462,8 +1463,7 @@ main (int argc, char **argv)
mach_port_allocate (mach_task_self (), MACH_PORT_RIGHT_RECEIVE, &execserver);
task_get_bootstrap_port (mach_task_self (), &boot);
- fsys_startup (boot, fsys, MACH_MSG_TYPE_MAKE_SEND, &realnode, &dotdot);
- mach_port_deallocate (mach_task_self (), dotdot); /* Don't care. */
+ fsys_startup (boot, fsys, MACH_MSG_TYPE_MAKE_SEND, &realnode);
mach_port_allocate (mach_task_self (),
MACH_PORT_RIGHT_PORT_SET, &request_portset);