From 209f7825fb5c1763e7178386b8f0dc069f9e7cad Mon Sep 17 00:00:00 2001 From: Jacob Bachmeyer Date: Sat, 5 Nov 2022 17:46:56 -0500 Subject: [PATCH] Remove use of chdir All file manipulations now use absolute file names. --- gatekeeper.pl | 7 ------- 1 file changed, 7 deletions(-) diff --git a/gatekeeper.pl b/gatekeeper.pl index ab5010e..16f2500 100755 --- a/gatekeeper.pl +++ b/gatekeeper.pl @@ -2600,13 +2600,6 @@ my @packets; @packets = gather_packets($Inbox_dir, $Scratch_dir); } -{ - our $Scratch_dir; - # we've moved the files to work on to a new directory. - chdir ($Scratch_dir) - or ftp_abort("FATAL: chdir($Scratch_dir) failed: $!"); -} - foreach my $packet (@packets) { # each list element is an array reference my $stem = substr $packet->[0],0,-(length '.directive.asc'); ftp_syslog('info',"found directive: $packet->[0]"); -- 2.25.1