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)
|
if (file == NULL)
|
||||||
file = MODULI_FILE;
|
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");
|
f = fopen(file, "r");
|
||||||
|
#endif
|
||||||
|
|
||||||
if (f == NULL) {
|
if (f == NULL) {
|
||||||
*moduli = m;
|
*moduli = m;
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user