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:
parent
50fd61eb8d
commit
dcd5353502
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.38 -
|
Version 2.02.38 -
|
||||||
=================================
|
=================================
|
||||||
|
Correct config file line numbers in messages when parsing comments.
|
||||||
In script-processing mode, stop if any command fails.
|
In script-processing mode, stop if any command fails.
|
||||||
Warn if command exits with non-zero status code without a prior log_error.
|
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.
|
Make clvmd-cman use a hash rather than an array for node updown info.
|
||||||
|
@ -798,11 +798,9 @@ static void _get_token(struct parser *p, int tok_prev)
|
|||||||
static void _eat_space(struct parser *p)
|
static void _eat_space(struct parser *p)
|
||||||
{
|
{
|
||||||
while ((p->tb != p->fe) && (*p->tb)) {
|
while ((p->tb != p->fe) && (*p->tb)) {
|
||||||
if (*p->te == '#') {
|
if (*p->te == '#')
|
||||||
while ((p->te != p->fe) && (*p->te) && (*p->te != '\n'))
|
while ((p->te != p->fe) && (*p->te) && (*p->te != '\n'))
|
||||||
p->te++;
|
p->te++;
|
||||||
p->line++;
|
|
||||||
}
|
|
||||||
|
|
||||||
else if (isspace(*p->te)) {
|
else if (isspace(*p->te)) {
|
||||||
while ((p->te != p->fe) && (*p->te) && isspace(*p->te)) {
|
while ((p->te != p->fe) && (*p->te) && isspace(*p->te)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user