summaryrefslogtreecommitdiff
path: root/libfshelp/fetch-root.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-06-24 20:00:44 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-06-24 20:00:44 +0000
commit3a047a3fccce1c4ecabd04b5963f9e04cc54a165 (patch)
tree311186eb37e30b09b7d56fb14bb2a0349c445659 /libfshelp/fetch-root.c
parentd24e64f58d57f5d9fbf8d53ee631036f06c3acb3 (diff)
(fshelp_fetch_root): Deal properly with errors from auth_makeauth.
Diffstat (limited to 'libfshelp/fetch-root.c')
-rw-r--r--libfshelp/fetch-root.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libfshelp/fetch-root.c b/libfshelp/fetch-root.c
index e743d638..b1813fd8 100644
--- a/libfshelp/fetch-root.c
+++ b/libfshelp/fetch-root.c
@@ -112,7 +112,8 @@ fshelp_fetch_root (struct transbox *box, void *cookie,
err = auth_makeauth (ourauth, 0, MACH_MSG_TYPE_MAKE_SEND, 0,
uidarray, 1, uidarray, 2,
gidarray, 1, gidarray, 2, &newauth);
- assert_perror (err);
+ if (err)
+ goto return_error;
bzero (ports, INIT_PORT_MAX * sizeof (mach_port_t));
bzero (fds, (STDERR_FILENO + 1) * sizeof (mach_port_t));