#
sub scan_incoming {
my @ret;
-
my %possible;
# Get list of all possible files from incoming dir.
#
closedir (INCOMING) || ftp_die("FATAL: closedir($incoming_dir) failed: $!");
# No possible files found, so return before we call lsof
return @ret unless %possible;
-
# Determine if any of those possible files are open. We find the
# possible files before running lsof (partly) to avoid a race
# condition. (If we ran lsof on the whole directory first, a new file
} elsif ($tainted_cmd =~ /^comment:?$/i) { # case-insensitive, w or w/o the :
# Comments are ok, we ignore them
} else {
- &fatal("unrecognized directive ($tainted_cmd)",1,$directive_file_contents);
+ &fatal("Invalid directive line:\n\n $tainted_cmd $tainted_val",1,$directive_file_contents);
}
}