From 39d940666837cad76d4650a7bdf23f2c9999235d Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Sat, 27 Jan 1996 17:06:45 +0000 Subject: (fshelp_fetch_root): If io_reauthenticate returns an error, just return MACH_PORT_NULL instead of aborting (the server probably died; not a good sign for the health of the translator, but it's better than dying ourselves...). --- libfshelp/fetch-root.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libfshelp/fetch-root.c') diff --git a/libfshelp/fetch-root.c b/libfshelp/fetch-root.c index ffac383e..10464617 100644 --- a/libfshelp/fetch-root.c +++ b/libfshelp/fetch-root.c @@ -67,13 +67,13 @@ fshelp_fetch_root (struct transbox *box, void *cookie, mach_port_insert_right (mach_task_self (), port, port,port_type); rend = mach_reply_port (); + err = io_reauthenticate (port, rend, MACH_MSG_TYPE_MAKE_SEND); - assert_perror (err); - - err = auth_user_authenticate (newauth, port, rend, - MACH_MSG_TYPE_MAKE_SEND, - &ret); + if (! err) + err = auth_user_authenticate (newauth, port, rend, + MACH_MSG_TYPE_MAKE_SEND, + &ret); if (err) ret = MACH_PORT_NULL; -- cgit v1.2.3