# $_ remains tainted, but $ent is an untainted (and safe) copy
# Examine the file; this populates an internal cache in perl.
- unless (stat($ent)) {
+ unless (stat(File::Spec->catfile($directory, $ent))) {
ftp_syslog('warning', "could not stat($ent), skipping");
next ENT
}
my $racecondition = 0;
my $directive = read_directive_from_file
- (File::Spec->catfile($directory,$stem.'.directive.asc'));
+ (File::Spec->catfile($directory, $stem.'.directive.asc'));
foreach my $cell (@$directive) {
next unless lc($cell->[0]) eq 'filename';
$racecondition = 1; # found a 'filename' directive
# - Main execution path
#
-# the chdir simplifies our filename parsing, so the base names don't
-# have any directory.
-chdir ($incoming_dir)
- or ftp_die("FATAL: chdir($incoming_dir) failed: $!");
my @incoming = gather_packets($incoming_dir, $incoming_tmp);
# Temporary scaffolding to convert the new values returned by scan_incoming