From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16365 invoked by alias); 3 Jun 2008 17:51:04 -0000 Received: (qmail 16350 invoked by uid 9447); 3 Jun 2008 17:51:04 -0000 Date: Tue, 03 Jun 2008 17:51:00 -0000 Message-ID: <20080603175104.16348.qmail@sourceware.org> From: agk@sourceware.org To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org Subject: LVM2 ./WHATS_NEW lib/config/config.c Mailing-List: contact lvm2-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: lvm2-cvs-owner@sourceware.org X-SW-Source: 2008-06/txt/msg00002.txt.bz2 CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: agk@sourceware.org 2008-06-03 17:51:04 Modified files: . : WHATS_NEW lib/config : config.c Log message: Correct config file line numbers in messages when parsing comments. (kabi) Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.878&r2=1.879 http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/config/config.c.diff?cvsroot=lvm2&r1=1.68&r2=1.69 --- LVM2/WHATS_NEW 2008/05/30 15:27:44 1.878 +++ LVM2/WHATS_NEW 2008/06/03 17:51:03 1.879 @@ -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. --- LVM2/lib/config/config.c 2008/03/12 16:03:21 1.68 +++ LVM2/lib/config/config.c 2008/06/03 17:51:04 1.69 @@ -798,11 +798,9 @@ 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)) {