From 4ef30a7878df2fb867bc566eed6c56a393e51f98 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Sun, 10 Aug 1997 22:03:22 +0000 Subject: [PATCH] implement support for #-comments git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2885 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/config_file.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/krb5/config_file.c b/lib/krb5/config_file.c index 1c9895775..5155aa856 100644 --- a/lib/krb5/config_file.c +++ b/lib/krb5/config_file.c @@ -87,6 +87,8 @@ 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 == '#') + continue; while(isspace(*p)) ++p; if (*p == '}') @@ -165,6 +167,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; + if (*p == '#') + continue; while(isspace(*p)) ++p; if (*p == '[') {