Commit a2238081 authored by Leigh Stoller's avatar Leigh Stoller

Minor fix to an earlier revision, that was causing log files to

get left in /tmp.
parent 7645ddc3
......@@ -578,11 +578,11 @@ sub SendAuditMail($)
$HDRS .= "CC: " . join(', ', @{ $AUDIT_INFO{'cc'} });
}
# Leave logfile if sendmail fails.
if ($brand->SendEmail($TO, $subject, $body, $FROM, $HDRS, @FILES)) {
unlink($logfile)
if (defined($logfile) && !$savelog);
}
# This always succeeds, stop leaving file in /tmp
$brand->SendEmail($TO, $subject, $body, $FROM, $HDRS, @FILES);
unlink($logfile)
if (defined($logfile) && !$savelog);
done:
system("/usr/bin/touch $prefork")
if (defined($prefork));
......
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