From de4711a130cc5c01359f7e0b58e4496e0ecf6c26 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Mon, 8 Jul 1996 01:07:47 +0000 Subject: (diskfs_S_io_reauthenticate): Don't use unsafe MOVE_SEND in auth_server_authenticate. --- libdiskfs/io-reauthenticate.c | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/libdiskfs/io-reauthenticate.c b/libdiskfs/io-reauthenticate.c index 13af7b38..25765161 100644 --- a/libdiskfs/io-reauthenticate.c +++ b/libdiskfs/io-reauthenticate.c @@ -46,17 +46,16 @@ diskfs_S_io_reauthenticate (struct protid *cred, return err; } - do - err = auth_server_authenticate (diskfs_auth_server_port, - rend_port, - MACH_MSG_TYPE_MOVE_SEND, - ports_get_right (newcred), - MACH_MSG_TYPE_MAKE_SEND, - &gen_uids, &genuidlen, - &aux_uids, &auxuidlen, - &gen_gids, &gengidlen, - &aux_gids, &auxgidlen); - while (err == EINTR); + err = auth_server_authenticate (diskfs_auth_server_port, + rend_port, + 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 (), rend_port); if (err) diskfs_finish_protid (newcred, 0, 0, 0, 0); -- cgit v1.2.3