[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: kinit -R -9



Chris Chiappa <griffon+heimdal-discuss@snurgle.org> writes:
> In Heimdal 0.4a, kinit -9 -R renews your krb5 tickets but not your krb4
> ones.  The following trivial patch fixes this (if it's not already fixed in
> CVS).

I think code to do this was actually in renew_validate, except it
didn't work.  This stupid patch should fix it.

/assar

Index: kinit.c
===================================================================
RCS file: /afs/pdc.kth.se/src/packages/kth-krb/SourceRepository/heimdal/kuser/kinit.c,v
retrieving revision 1.82
diff -u -w -u -w -r1.82 kinit.c
--- kinit.c	2001/07/06 14:37:38	1.82
+++ kinit.c	2001/07/13 06:53:10
@@ -365,7 +365,7 @@
     ret = krb5_cc_store_cred(context, cache, out);
 
 #ifdef KRB4
-    if(ret != 0 && server == NULL) {
+    if(ret == 0 && server == NULL) {
 	/* only do this if it's a general renew-my-tgt request */
 	if(get_v4_tgt)
 	    do_524init(context, cache, out, NULL);