From ba6d0ce5d333fbf1e993537fff032c37a9ae9f18 Mon Sep 17 00:00:00 2001 From: Jacob Bachmeyer Date: Wed, 26 Jan 2022 21:16:00 -0600 Subject: [PATCH] Improve log messages for oversize directive or signature files The new messages are easier for the testsuite to match. --- upload-ftp-v1.2.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/upload-ftp-v1.2.pl b/upload-ftp-v1.2.pl index b423ce1..5115516 100755 --- a/upload-ftp-v1.2.pl +++ b/upload-ftp-v1.2.pl @@ -632,11 +632,11 @@ sub scan_incoming { 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"); + ftp_syslog('info', "($log_style) directive file ($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"); + ftp_syslog('info', "($log_style) signature file ($sig) larger than 50KB"); &fatal("The signature file $sig is larger than 50KB. This can not be correct, ignoring upload.",0); } } -- 2.25.1