Commit 66ff649c authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Minor fix to make sure the /tmp log file is removed. Well, I think

this will fix it ...
parent 511f241d
......@@ -239,10 +239,11 @@ sub SendAuditMail($)
else {
$TO = $TBOPS;
}
SENDMAIL($TO, $subject, $body, $FROM, $HDRS, @FILES);
if ($? == 0 && defined($logfile)) {
unlink($logfile);
# Leave logfile if sendmail fails.
if (SENDMAIL($TO, $subject, $body, $FROM, $HDRS, @FILES)) {
unlink($logfile)
if (defined($logfile));
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment