1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Correct config file line numbers in messages when parsing comments. (kabi)

This commit is contained in:
Alasdair Kergon 2008-06-03 17:51:04 +00:00
parent 50fd61eb8d
commit dcd5353502
2 changed files with 2 additions and 3 deletions

View File

@ -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.

View File

@ -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)) {