mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-13 10:02:38 +00:00
Don't email reports that are empty or very short, as can happen if tbmaster
fails to exec the tinderbox script.
This commit is contained in:
parent
1474c0cd58
commit
9c89ce0f27
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=148510
@ -206,6 +206,12 @@ sub report($$$$) {
|
||||
my $subject = shift;
|
||||
my $message = shift;
|
||||
|
||||
if (length($message) < 64) {
|
||||
print(STDERR "[suspiciously short report, not sent by email]\n\n");
|
||||
print(STDERR $message);
|
||||
return;
|
||||
}
|
||||
|
||||
local *PIPE;
|
||||
if (open(PIPE, "|-", "/usr/sbin/sendmail", "-i", "-t", "-f$sender")) {
|
||||
print(PIPE "Sender: $sender\n");
|
||||
|
Loading…
Reference in New Issue
Block a user