[1747] in Moira
com_err....sucks
daemon@ATHENA.MIT.EDU (Garry Zacheiss)
Thu Mar 1 06:45:37 2001
Message-Id: <200103011145.GAA01184@riff-raff.mit.edu>
To: moiradev@MIT.EDU
Date: Thu, 01 Mar 2001 06:45:30 -0500
From: Garry Zacheiss <zacheiss@MIT.EDU>
mrcl_krb_user() in libmrclient wasn't translating the return
value of tf_init into a value in com_err's error code space. This seems
gross, but here's a patch.
Garry
Index: utils.c
===================================================================
RCS file: /afs/athena.mit.edu/astaff/project/moiradev/repository/moira/clients/lib/utils.c,v
retrieving revision 1.4
diff -u -r1.4 utils.c
--- utils.c 2000/03/29 20:49:15 1.4
+++ utils.c 2001/03/01 11:41:43
@@ -13,6 +13,7 @@
#include <com_err.h>
#include <krb.h>
+#include <krb_err.h>
#include <sys/types.h>
@@ -116,6 +117,7 @@
{
/* In case mr_init hasn't been called yet. */
initialize_krb_error_table();
+ status += ERROR_TABLE_BASE_krb;
com_err(whoami, status, "reading Kerberos ticket file.");
return NULL;
}