|| &fatal("rename $incoming_dir/$base to $incoming_tmp/$base failed: $!",0);
delete $possible{$base};
- }
+ } elsif ((-f $directive) && ((-s $directive) >= 50*1024)) {
+ rename ("$incoming_dir/$directive", "$incoming_dir/.$directive");
+ ftp_syslog('info', "($log_style) $directive larger than 50KB");
+ &fatal("The directive file $directive is larger than 50KB. This can not be correct, ignoring upload.",0);
+ } elsif ((-f $sig) && ((-s $sig) >= 50*1024)) {
+ rename ("$incoming_dir/$sig", "$incoming_dir/.$sig");
+ ftp_syslog('info', "($log_style) $directive or $sig larger than 50KB");
+ &fatal("The signature file $sig is larger than 50KB. This can not be correct, ignoring upload.",0);
+ }
}
return @ret;