From 1aa226ef17d8f5217c9daec29f6663298aaf3201 Mon Sep 17 00:00:00 2001 From: Jacob Bachmeyer Date: Sat, 15 Oct 2022 23:24:00 -0500 Subject: [PATCH] Move declaration of counter in read_directive_file nearer to loop --- gatekeeper.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.25.1