Handle case when ticket cache name does not include a colon
authorEzra Peisach <epeisach@mit.edu>
Tue, 10 Oct 1995 03:15:46 +0000 (03:15 +0000)
committerEzra Peisach <epeisach@mit.edu>
Tue, 10 Oct 1995 03:15:46 +0000 (03:15 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6956 dc483132-0cff-0310-8789-dd5450dbe970

src/clients/ksu/ChangeLog
src/clients/ksu/main.c

index 9ec6eddc7584b774bc03c836b361e1b428f2ecd0..b151fcf7f68dfcac663e1786045722ccaeb00b1d 100644 (file)
@@ -1,3 +1,8 @@
+Mon Oct  9 23:14:33 1995  Ezra Peisach  <epeisach@kangaroo.mit.edu>
+
+       * main.c (main): Handle case when ticket cache name does not
+               include ':'
+
 Thu Oct  5 11:23:21 1995  Ezra Peisach  <epeisach@kangaroo.mit.edu>
 
        * ksu.M: Document authorization changes.
index 582c772cbabf206758e823c92db89a267b266669..deb7643f8e55ae2e6fbaf146c63c9d6d7836b668 100644 (file)
@@ -374,6 +374,8 @@ char * dir_of_cc_source;
        if (cc_source_tag == NULL){
                cc_source_tag = krb5_cc_default_name(ksu_context);
                cc_source_tag_tmp = strchr(cc_source_tag, ':') + 1;
+               if (cc_source_tag_tmp == (char *) 1) 
+                       cc_source_tag_tmp = cc_source_tag;
        }
        
        /* get a handle for the cache */