From: Jacob Bachmeyer Date: Sat, 5 Nov 2022 22:46:56 +0000 (-0500) Subject: Remove use of chdir X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=209f7825fb5c1763e7178386b8f0dc069f9e7cad;p=gatekeeper.git Remove use of chdir All file manipulations now use absolute file names. --- 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]");