From 95efc3d778ae12a7de3f6b774744b7c6672b14f4 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Wed, 7 Jul 1999 00:41:01 +0000 Subject: [PATCH] * kdb5_util.c (main): Do try using com_err in the case that krb5_init_context fails, instead of fprintf of the error number. (cf krb5-bugs db #499, 13-Nov-1997) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11546 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kadmin/dbutil/ChangeLog | 5 +++++ src/kadmin/dbutil/kdb5_util.c | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/kadmin/dbutil/ChangeLog b/src/kadmin/dbutil/ChangeLog index 65231e8e0..44ac4d427 100644 --- a/src/kadmin/dbutil/ChangeLog +++ b/src/kadmin/dbutil/ChangeLog @@ -1,3 +1,8 @@ +1999-07-06 Ken Raeburn + + * kdb5_util.c (main): Do try using com_err in the case that + krb5_init_context fails, instead of fprintf of the error number. + 1998-11-13 Theodore Ts'o * Makefile.in: Set the myfulldir and mydir variables (which are diff --git a/src/kadmin/dbutil/kdb5_util.c b/src/kadmin/dbutil/kdb5_util.c index 0a053c8c8..e421f15ec 100644 --- a/src/kadmin/dbutil/kdb5_util.c +++ b/src/kadmin/dbutil/kdb5_util.c @@ -156,8 +156,7 @@ int main(argc, argv) retval = krb5_init_context(&util_context); if (retval) { - fprintf(stderr, "krb5_init_context failed with error #%ld\n", - (long) retval); + com_err (progname, retval, "while initializing Kerberos code"); exit(1); } initialize_adb_error_table(); -- 2.26.2