[libvirt] [PATCH] maint: fix line numbers in check-aclrules reports

Roman Bogorodskiy bogorodskiy at gmail.com
Sun Feb 9 20:10:35 UTC 2014


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 <ymyasoedov at yandex.ru>
---
 src/check-aclrules.pl | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/check-aclrules.pl b/src/check-aclrules.pl
index f54b934..9151e6a 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;
-- 
1.8.4.3




More information about the libvir-list mailing list