diff options
author | Michael I. Bushnell <mib@gnu.org> | 1996-06-24 19:57:54 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1996-06-24 19:57:54 +0000 |
commit | d24e64f58d57f5d9fbf8d53ee631036f06c3acb3 (patch) | |
tree | f2f55bf9669db936d0013b98d9cb0ab47ec605fa /libdiskfs/io-reauthenticate.c | |
parent | f02b23f2a377026c201fbf79ee0c0c361b859e4b (diff) |
(diskfs_S_io_reauthenticate): If auth_server_authenticate fails, then
fill with empty IDs. We can't permit interruption, because this is a
simpleroutine.
Diffstat (limited to 'libdiskfs/io-reauthenticate.c')
-rw-r--r-- | libdiskfs/io-reauthenticate.c | 28 |
1 files changed, 16 insertions, 12 deletions
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); |