(parse_list, krb5_config_parse_file): ignore more spaces
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5056 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -229,6 +229,8 @@ parse_list(FILE *f, unsigned *lineno, krb5_config_binding **parent)
|
||||
if (buf[strlen(buf) - 1] == '\n')
|
||||
buf[strlen(buf) - 1] = '\0';
|
||||
p = buf;
|
||||
while(isspace(*p))
|
||||
++p;
|
||||
if (*p == '#' || *p == ';')
|
||||
continue;
|
||||
while(isspace(*p))
|
||||
@@ -309,6 +311,8 @@ krb5_config_parse_file (const char *fname, krb5_config_section **res)
|
||||
if(buf[strlen(buf) - 1] == '\n')
|
||||
buf[strlen(buf) - 1] = '\0';
|
||||
p = buf;
|
||||
while(isspace(*p))
|
||||
++p;
|
||||
if (*p == '#' || *p == ';')
|
||||
continue;
|
||||
while(isspace(*p))
|
||||
|
Reference in New Issue
Block a user