+Mon Mar 24 12:19:03 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * t_kdb.c (do_testing): Clean up error handling for krb5_init_context.
+
+ * Makefile.in (check): Define and use KRB5_CONFIG_SETUP which sets
+ up the environment variables appropriately.
+
Sun Mar 16 21:20:00 1997 Tom Yu <tlyu@mit.edu>
* keytab.c: Don't assume dbm_db_get_mkey() and dbe_find_enctype
CFLAGS = $(CCOPTS) $(DEFS)
KRB5_RUN_ENV = @KRB5_RUN_ENV@
+KRB5_CONFIG_SETUP = KRB5_CONFIG=$(SRCTOP)/config-files/krb5.conf ; export KRB5_CONFIG ;
PROG_LIBPATH=-L$(TOPLIBD)
PROG_RPATH=$(KRB5_LIBDIR)
$(CC_LINK) -o t_kdb t_kdb.o $(OBJS) $(KDB5_LIBS) $(KRB5_BASE_LIBS)
check:: t_kdb
- KRB5_CONFIG=$(srcdir)/t_krb5.conf ; export KRB5_CONFIG ;\
- $(KRB5_RUN_ENV) ./t_kdb -tcv
- KRB5_CONFIG=$(srcdir)/t_krb5.conf ; export KRB5_CONFIG ;\
- $(KRB5_RUN_ENV) ./t_kdb -tcvr
+ $(KRB5_CONFIG_SETUP) $(KRB5_RUN_ENV) ./t_kdb -tcv
+ $(KRB5_CONFIG_SETUP) $(KRB5_RUN_ENV) ./t_kdb -tcvr
clean::
$(RM) t_kdb t_kdb.o
oparg = "";
/* Set up some initial context */
+ op = "initializing krb5";
kret = krb5_init_context(&kcontext);
- if (kret) {
- com_err(programname, kret, "while initializing krb5");
- exit(1);
- }
+ if (kret)
+ goto goodbye;
/*
* The database had better not exist.