(_krb5_expand_default_cc_name): change format for expantion variables
to %{variable} to not confuse them with shell ditto git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15252 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -243,9 +243,9 @@ _krb5_expand_default_cc_name(krb5_context context, const char *str, char **res)
|
||||
krb5_set_error_string(context, "variable missing }");
|
||||
return KRB5_CONFIG_BADFORMAT;
|
||||
}
|
||||
if (strncasecmp(tmp, "${uid}", 6) == 0)
|
||||
if (strncasecmp(tmp, "%{uid}", 6) == 0)
|
||||
asprintf(&append, "%u", (unsigned)getuid());
|
||||
else if (strncasecmp(tmp, "${null}", 7) == 0)
|
||||
else if (strncasecmp(tmp, "%{null}", 7) == 0)
|
||||
append = strdup("");
|
||||
else {
|
||||
free(*res);
|
||||
|
Reference in New Issue
Block a user