]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
maint: fix line numbers in check-aclrules reports
authorYuri Myasoedov <ymyasoedov@yandex.ru>
Sun, 9 Feb 2014 20:10:35 +0000 (00:10 +0400)
committerEric Blake <eblake@redhat.com>
Mon, 10 Feb 2014 21:07:22 +0000 (14:07 -0700)
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@yandex.ru>
Signed-off-by: Roman Bogorodskiy <bogorodskiy@gmail.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
src/check-aclrules.pl

index f54b934225de3ce20efff4bbb26a87caeec7322e..9151e6adc9b85d646c6b95f7070e644840584a4f 100755 (executable)
@@ -254,6 +254,8 @@ while (<>) {
     $brace += $count;
     $count = s/}//g;
     $brace -= $count;
+} continue {
+    close ARGV if eof;
 }
 
 exit $status;