Expand path tokens for krb5.moduli
This commit is contained in:
@@ -2214,7 +2214,21 @@ _krb5_parse_moduli(krb5_context context, const char *file,
|
||||
if (file == NULL)
|
||||
file = MODULI_FILE;
|
||||
|
||||
#ifdef KRB5_USE_PATH_TOKENS
|
||||
{
|
||||
char * exp_file;
|
||||
|
||||
if (_krb5_expand_path_tokens(context, file, &exp_file) == 0) {
|
||||
f = fopen(exp_file, "r");
|
||||
krb5_xfree(exp_file);
|
||||
} else {
|
||||
f = NULL;
|
||||
}
|
||||
}
|
||||
#else
|
||||
f = fopen(file, "r");
|
||||
#endif
|
||||
|
||||
if (f == NULL) {
|
||||
*moduli = m;
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user