From d24e64f58d57f5d9fbf8d53ee631036f06c3acb3 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Mon, 24 Jun 1996 19:57:54 +0000 Subject: (diskfs_S_io_reauthenticate): If auth_server_authenticate fails, then fill with empty IDs. We can't permit interruption, because this is a simpleroutine. --- libdiskfs/io-reauthenticate.c | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) (limited to 'libdiskfs/io-reauthenticate.c') diff --git a/libdiskfs/io-reauthenticate.c b/libdiskfs/io-reauthenticate.c index f29c94ca..13af7b38 100644 --- a/libdiskfs/io-reauthenticate.c +++ b/libdiskfs/io-reauthenticate.c @@ -46,18 +46,22 @@ diskfs_S_io_reauthenticate (struct protid *cred, return err; } - 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); - assert_perror (err); /* XXX */ - - diskfs_finish_protid (newcred, gen_uids, genuidlen, gen_gids, gengidlen); + 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); + + if (err) + diskfs_finish_protid (newcred, 0, 0, 0, 0); + else + diskfs_finish_protid (newcred, gen_uids, genuidlen, gen_gids, gengidlen); mutex_unlock (&cred->po->np->lock); ports_port_deref (newcred); -- cgit v1.2.3