From: Jacob Bachmeyer Date: Sun, 16 Oct 2022 04:24:00 +0000 (-0500) Subject: Move declaration of counter in read_directive_file nearer to loop X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=1aa226ef17d8f5217c9daec29f6663298aaf3201;p=gatekeeper.git Move declaration of counter in read_directive_file nearer to loop --- diff --git a/gatekeeper.pl b/gatekeeper.pl index f4d3d0b..0988f1d 100755 --- a/gatekeeper.pl +++ b/gatekeeper.pl @@ -1278,7 +1278,6 @@ sub read_directive_file { open (DIRECTIVE_FILE, "<", $directive_file) or ftp_abort("FATAL: open($directive_file) failed: $!"); - my $cnt = 0; # Keep track of the order of directives... $directive_file_contents = join('', (@lines = )); close (DIRECTIVE_FILE) or ftp_warn("close($directive_file) failed: $!"); @@ -1299,6 +1298,7 @@ sub read_directive_file { push(@{$info{email}},$1) if ($tmp_retval =~ /Good signature from .*?<(.*?)>/); + my $cnt = 0; # Keep track of the order of directives... my $signed = 0; # If there is a command in the directive that doesn't require an actual # file to work on, we won't require the filename line in the directive