support ; for comments for compatability with MIT

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3503 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-09-18 07:25:06 +00:00
parent 7c164dc23c
commit 21a372e534

View File

@@ -229,7 +229,7 @@ parse_list(FILE *f, unsigned *lineno, krb5_config_binding **parent)
if (buf[strlen(buf) - 1] == '\n')
buf[strlen(buf) - 1] = '\0';
p = buf;
if (*p == '#')
if (*p == '#' || *p == ';')
continue;
while(isspace(*p))
++p;
@@ -309,7 +309,7 @@ krb5_config_parse_file (const char *fname, krb5_config_section **res)
if(buf[strlen(buf) - 1] == '\n')
buf[strlen(buf) - 1] = '\0';
p = buf;
if (*p == '#')
if (*p == '#' || *p == ';')
continue;
while(isspace(*p))
++p;