message if neceesary.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9315
dc483132-0cff-0310-8789-
dd5450dbe970
+Wed Nov 6 12:02:59 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * klist.c (main): Check the error return from krb5_init_context(),
+ and print an error message if neceesary.
+
Tue Sep 10 14:14:21 1996 Tom Yu <tlyu@mit.edu>
* klist.M: remove ".so man1/header.doc"
int argc;
char **argv;
{
+ krb5_error_code retval;
int code;
char *name;
int mode;
- krb5_init_context(&kcontext);
- krb5_init_ets(kcontext);
+ retval = krb5_init_context(&kcontext);
+ if (retval) {
+ com_err(argv[0], status, "while initializing krb5");
+ exit(1);
+ }
progname = (strrchr(*argv, '/') ? strrchr(*argv, '/')+1 : argv[0]);