Commit 5730b8bb authored by Leigh B. Stoller's avatar Leigh B. Stoller

Allow exitstatus to be given when doing logonly

parent 7c3109ac
......@@ -216,17 +216,24 @@ sub LogStart($;$)
return AuditStart($daemon, $logname, LIBAUDIT_LOGONLY());
}
sub LogEnd()
sub LogEnd(;$)
{
return AuditEnd();
my ($status) = @_;
return AuditEnd($status);
}
#
# Finish an Audit.
#
sub AuditEnd()
sub AuditEnd(;$)
{
SendAuditMail(0);
my ($status) = @_;
$status = 0
if (!defined($status));
SendAuditMail($status);
delete @ENV{'TBAUDITLOG', 'TBAUDITON'};
if (defined($logfile)) {
unlink($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