All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

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