diff --git a/WHATS_NEW b/WHATS_NEW index 698a709cd..113b391b9 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.38 - ================================= + Correct config file line numbers in messages when parsing comments. In script-processing mode, stop if any command fails. Warn if command exits with non-zero status code without a prior log_error. Make clvmd-cman use a hash rather than an array for node updown info. diff --git a/lib/config/config.c b/lib/config/config.c index f0582a5de..3166550a5 100644 --- a/lib/config/config.c +++ b/lib/config/config.c @@ -798,11 +798,9 @@ static void _get_token(struct parser *p, int tok_prev) static void _eat_space(struct parser *p) { while ((p->tb != p->fe) && (*p->tb)) { - if (*p->te == '#') { + if (*p->te == '#') while ((p->te != p->fe) && (*p->te) && (*p->te != '\n')) p->te++; - p->line++; - } else if (isspace(*p->te)) { while ((p->te != p->fe) && (*p->te) && isspace(*p->te)) {