From 07a96188aaa35c87eb640d6efc407a52c3e6150a Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Tue, 10 Oct 1995 03:15:46 +0000 Subject: [PATCH] Handle case when ticket cache name does not include a colon git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6956 dc483132-0cff-0310-8789-dd5450dbe970 --- src/clients/ksu/ChangeLog | 5 +++++ src/clients/ksu/main.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/src/clients/ksu/ChangeLog b/src/clients/ksu/ChangeLog index 9ec6eddc7..b151fcf7f 100644 --- a/src/clients/ksu/ChangeLog +++ b/src/clients/ksu/ChangeLog @@ -1,3 +1,8 @@ +Mon Oct 9 23:14:33 1995 Ezra Peisach + + * main.c (main): Handle case when ticket cache name does not + include ':' + Thu Oct 5 11:23:21 1995 Ezra Peisach * ksu.M: Document authorization changes. diff --git a/src/clients/ksu/main.c b/src/clients/ksu/main.c index 582c772cb..deb7643f8 100644 --- a/src/clients/ksu/main.c +++ b/src/clients/ksu/main.c @@ -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 */ -- 2.26.2