Remove spurious slash when expanding path tokens
Path tokens that expand to directories are expected to end in a slash.
This commit is contained in:
@@ -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", ""));
|
||||
|
Reference in New Issue
Block a user