From 6d132f1d7d94d2acd14a1ba9e8ea4d2b1da2e406 Mon Sep 17 00:00:00 2001 From: Asanka Herath Date: Wed, 26 May 2010 10:21:54 -0400 Subject: [PATCH] Remove spurious slash when expanding path tokens Path tokens that expand to directories are expected to end in a slash. --- lib/krb5/config_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/krb5/config_file.c b/lib/krb5/config_file.c index 4eb4e12fa..f6f157063 100644 --- a/lib/krb5/config_file.c +++ b/lib/krb5/config_file.c @@ -447,7 +447,7 @@ krb5_config_parse_file_multi (krb5_context context, fname = newfname; } #else /* KRB5_USE_PATH_TOKENS */ - asprintf(&newfname, "%%{USERCONFIG}/%s", &fname[1]); + asprintf(&newfname, "%%{USERCONFIG}%s", &fname[1]); if (newfname == NULL) { krb5_set_error_message(context, ENOMEM, N_("malloc: out of memory", ""));