From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Jackson Subject: [OSSTEST PATCH 1/3] ts-xen-install: nodhcp: Fix iface regexp Date: Thu, 17 Apr 2014 16:13:22 +0100 Message-ID: <1397747604-9321-1-git-send-email-ian.jackson@eu.citrix.com> References: <1397660720.24638.208.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Wao0S-0006At-3S for xen-devel@lists.xenproject.org; Thu, 17 Apr 2014 15:13:40 +0000 In-Reply-To: <1397660720.24638.208.camel@kazak.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org This regexp would never match because of the spurious $. Remove the $ and also the preceding unnecessary \s*. Signed-off-by: Ian Jackson --- ts-xen-install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts-xen-install b/ts-xen-install index 4a810e4..70e90ed 100755 --- a/ts-xen-install +++ b/ts-xen-install @@ -221,7 +221,7 @@ sub nodhcp () { next unless m{^ \s* ( auto \s+ (\S+) ) \s* $}x || m{^ \s* ( allow-hotplug \s+ (\S+) ) \s* $}x || - m{^ \s* ( iface \s+ (\S+) \s+ inet \s+ ) \s* $}x ; + m{^ \s* ( iface \s+ (\S+) \s+ inet \s+ ) }x ; push @{ $candidates{$2} }, $1; } EI->error and die $!; -- 1.7.10.4