summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-07-07 20:06:26 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-07-07 20:06:26 +0000
commit5e60005ee48bf00b56ccf8da58df87aaff68d8a6 (patch)
treeca5b4e123870480c8eb9f025421fca89c695ae85
parent1319f7565bd0a6260bf4b39c7262c4995a2f023c (diff)
(trivfs_S_io_reauthenticate): Don't use MACH_MSG_TYPE_MOVE_SEND; it's
unreliable.
-rw-r--r--libtrivfs/io-reauthenticate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libtrivfs/io-reauthenticate.c b/libtrivfs/io-reauthenticate.c
index 7cf2573e..18df85e5 100644
--- a/libtrivfs/io-reauthenticate.c
+++ b/libtrivfs/io-reauthenticate.c
@@ -57,13 +57,14 @@ trivfs_S_io_reauthenticate (struct trivfs_protid *cred,
auth = getauth ();
err = auth_server_authenticate (auth,
rendport,
- MACH_MSG_TYPE_MOVE_SEND,
+ MACH_MSG_TYPE_COPY_SEND,
ports_get_right (newcred),
MACH_MSG_TYPE_MAKE_SEND,
&gen_uids, &genuidlen,
&aux_uids, &auxuidlen,
&gen_gids, &gengidlen,
&aux_gids, &auxgidlen);
+ mach_port_deallocate (mach_task_self (), rendport);
assert (!err); /* XXX */
mach_port_deallocate (mach_task_self (), auth);