diff options
author | Michael I. Bushnell <mib@gnu.org> | 1996-07-08 01:28:42 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1996-07-08 01:28:42 +0000 |
commit | 1e6744df4d3a64a6b848998b44a7fc7cdbe4456d (patch) | |
tree | a28709f9e57b747eca72781ea9774ecd4b725b90 /libnetfs/io-reauthenticate.c | |
parent | 6095be9462f3920115940c2e4a8608d03e8f1331 (diff) |
(netfs_S_io_reauthenticate): Don't use unsafe MOVE_SEND in call to
auth_server_authenticate.
Diffstat (limited to 'libnetfs/io-reauthenticate.c')
-rw-r--r-- | libnetfs/io-reauthenticate.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libnetfs/io-reauthenticate.c b/libnetfs/io-reauthenticate.c index 5e08f413..3d8db79d 100644 --- a/libnetfs/io-reauthenticate.c +++ b/libnetfs/io-reauthenticate.c @@ -43,13 +43,14 @@ netfs_S_io_reauthenticate (struct protid *user, mach_port_t rend_port) newpi = netfs_make_protid (user->po, 0); err = auth_server_authenticate (netfs_auth_server_port, rend_port, - MACH_MSG_TYPE_MOVE_SEND, + MACH_MSG_TYPE_COPY_SEND, ports_get_right (newpi), MACH_MSG_TYPE_MAKE_SEND, &gen_uids, &genuidlen, &aux_uids, &auxuidlen, &gen_gids, &gengidlen, &aux_uids, &auxuidlen); + mach_port_deallocate (mach_task_self (), rend_port); assert_perror (err); newpi->credential = netfs_make_credential (gen_uids, genuidlen, |