summaryrefslogtreecommitdiff
path: root/libtrivfs
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-07-19 23:23:27 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-07-19 23:23:27 +0000
commit44e6170a66e3c0a5e6dbc81464218f5cd15cd407 (patch)
tree7c5e88b49c1bf87fe6df4a246797d856b66350fa /libtrivfs
parentb9119ad42cd607c827b374548f52440ad1b67a00 (diff)
Formerly fsys-getroot.c.~14~
Diffstat (limited to 'libtrivfs')
-rw-r--r--libtrivfs/fsys-getroot.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libtrivfs/fsys-getroot.c b/libtrivfs/fsys-getroot.c
index 789a2068..1ae72458 100644
--- a/libtrivfs/fsys-getroot.c
+++ b/libtrivfs/fsys-getroot.c
@@ -38,6 +38,7 @@ kern_return_t
trivfs_S_fsys_getroot (struct trivfs_control *cntl,
mach_port_t reply_port,
mach_msg_type_name_t reply_port_type,
+ mach_port_t dotdot,
uid_t *uids, u_int nuids,
uid_t *gids, u_int ngids,
int flags,
@@ -131,6 +132,7 @@ trivfs_S_fsys_getroot (struct trivfs_control *cntl,
cntl->openstail = pendo;
ports_done_with_port (cntl);
+ mach_port_deallocate (mach_task_self (), dotdot);
return MIG_NO_REPLY;
}
else
@@ -139,6 +141,7 @@ trivfs_S_fsys_getroot (struct trivfs_control *cntl,
*retry_name = '\0';
*newpt = ports_get_right (cred);
*newpttype = MACH_MSG_TYPE_MAKE_SEND;
+ mach_port_deallocate (mach_task_self (), dotdot);
return 0;
}
}