From: Yuri Myasoedov Date: Sun, 9 Feb 2014 20:10:35 +0000 (+0400) Subject: maint: fix line numbers in check-aclrules reports X-Git-Tag: v1.2.2-rc1~145 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc25e451581095c271eb1d189ada28b70c2fe956;p=thirdparty%2Flibvirt.git maint: fix line numbers in check-aclrules reports Reset line numbering on each input file in check-aclrules.pl. Otherwise it reports wrong line numbers in its error messages. Signed-off-by: Yuri Myasoedov Signed-off-by: Roman Bogorodskiy Signed-off-by: Eric Blake --- diff --git a/src/check-aclrules.pl b/src/check-aclrules.pl index f54b934225..9151e6adc9 100755 --- a/src/check-aclrules.pl +++ b/src/check-aclrules.pl @@ -254,6 +254,8 @@ while (<>) { $brace += $count; $count = s/}//g; $brace -= $count; +} continue { + close ARGV if eof; } exit $status;