From d18af98b630cb56be56bff3538e208f37f27f59a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Mon, 7 Apr 2008 11:47:30 +0000 Subject: [PATCH] Search backward for :, make sample name not include : git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22827 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/scache.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/krb5/scache.c b/lib/krb5/scache.c index 5a0d13ac3..bca7270ba 100644 --- a/lib/krb5/scache.c +++ b/lib/krb5/scache.c @@ -188,7 +188,7 @@ scc_alloc(krb5_context context, const char *name) name = SCACHE_DEF_NAME; } s->name = strdup(name); - file = strchr(s->name, ':'); + file = strrchr(s->name, ':'); if (file) { *file++ = '\0'; s->file = strdup(file); @@ -197,7 +197,7 @@ scc_alloc(krb5_context context, const char *name) } } else { _krb5_expand_default_cc_name(context, KRB5_SCACHE_DB, &s->file); - asprintf(&s->name, "unique:%08x", (unsigned long)s); + asprintf(&s->name, "unique-%08x", (unsigned long)s); } if (s->file == NULL || s->name == NULL) { scc_free(s);