* prof_parse.c (parse_std_line): Spaces after '{' or ']' should
not be a fatal error. This is a common lossage in krb5.conf files.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12595
dc483132-0cff-0310-8789-
dd5450dbe970
+2000-08-02 Ezra Peisach <epeisach@mit.edu>
+
+ * krb5.conf: Test with a space after ']' and '{'
+
+ * prof_parse.c (parse_std_line): Spaces after '{' or ']' should
+ not be a fatal error. This is a common lossage in krb5.conf files.
+
2000-07-24 Ezra Peisach <epeisach@mit.edu>
* prof_init.c: Cleanup internal type warnings in calls to profile_init.
kdc_timesync = 1
ccache_type = 4
-[realms]
- ATHENA.MIT.EDU = {
+[realms]
+ ATHENA.MIT.EDU = {
# kdc = kerberos-2000.mit.edu
kdc = kerberos.mit.edu:88
kdc = kerberos-1.mit.edu:88
profile_make_node_final(state->current_section);
cp++;
}
+ /*
+ * A space after ']' should not be fatal
+ */
+ cp = skip_over_blanks(cp);
if (*cp)
return PROF_SECTION_SYNTAX;
return 0;
} else if (value[0] == 0) {
do_subsection++;
state->state = STATE_GET_OBRACE;
- } else if (value[0] == '{' && value[1] == 0)
+ } else if (value[0] == '{' && *(skip_over_blanks(value+1)) == 0)
do_subsection++;
else {
cp = value + strlen(value) - 1;