Commit 8db30b88 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Minor changes to AuditEnd(); make sure auditing flags are not passed

in the environment to decendants once the the audit is done.
parent 76551b01
...@@ -152,6 +152,7 @@ sub AuditStart($;$) ...@@ -152,6 +152,7 @@ sub AuditStart($;$)
sub AuditEnd() sub AuditEnd()
{ {
SendAuditMail(0); SendAuditMail(0);
delete @ENV{'TBAUDITLOG', 'TBAUDITON'};
return 0; return 0;
} }
...@@ -171,6 +172,7 @@ sub AuditAbort() ...@@ -171,6 +172,7 @@ sub AuditAbort()
unlink($logfile); unlink($logfile);
undef($logfile); undef($logfile);
} }
delete @ENV{'TBAUDITLOG', 'TBAUDITON'};
} }
return 0; return 0;
} }
...@@ -182,6 +184,7 @@ sub AuditAbort() ...@@ -182,6 +184,7 @@ sub AuditAbort()
sub AuditFork() sub AuditFork()
{ {
$auditing = 0; $auditing = 0;
delete @ENV{'TBAUDITLOG', 'TBAUDITON'};
return 0; return 0;
} }
......
Supports Markdown
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