# square brackets, to all messages logged.
our $Phase = undef; # should be set using local
- # If this is set to a defined value, ftp_abort will write the message
+ # If this is set to a defined value, abort will write the message
# here instead of using syslog.
our $AbortPipe = undef;
# This selects the default exit code, if no code is specified.
my @addresses;
foreach my $file (@email_files) {
- open EMAIL_FILE, '<', $file or abort("open($file) failed: $!");
+ open EMAIL_FILE, '<', $file or abort "open($file) failed: $!";
while (<EMAIL_FILE>) {
chomp;
push @addresses, $1
my $needle = $package_name.' - ';
my $nlen = length $needle;
open EMAIL_FILE, '<', $maintainers_bypkg
- or abort("open($maintainers_bypkg) failed: $!");
+ or abort "open($maintainers_bypkg) failed: $!";
while (<EMAIL_FILE>) {
chomp;
next unless $needle eq substr $_,0,$nlen; # find the line for this package
my @filtered = @emaillist;
if (-f $blacklist_file) {
open BLACKLIST, '<', $blacklist_file
- or abort("open($blacklist_file) failed: $!");
+ or abort "open($blacklist_file) failed: $!";
while (<BLACKLIST>) { chomp; $blacklist{$_}++ }
- close BLACKLIST or abort("close($blacklist_file) failed: $!");
+ close BLACKLIST or abort "close($blacklist_file) failed: $!";
@filtered = grep !$blacklist{$_}, @emaillist;
}
# Get list of all possible files from incoming dir.
#
opendir INCOMING, $directory
- or abort("FATAL opendir($directory) failed: $!");
+ or abort "FATAL opendir($directory) failed: $!";
ENT: while (defined($_ = readdir INCOMING)) {
next ENT if m/^[.]{1,2}$/; # skip . and .. entries
# require acceptable filenames
$possible{$ent} = 1;
}
closedir INCOMING
- or abort("FATAL: closedir($directory) failed: $!");
+ or abort "FATAL: closedir($directory) failed: $!";
# dispose of any garbage files
ftp_syslog('info', "$badname_count files with bogus names were trashcanned")