mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 10:08:20 +00:00
Add an internal getenv wrapper function: zeekenv
It maps newer environment variable names starting with ZEEK to the legacy names starting with BRO.
This commit is contained in:
parent
580822a32c
commit
7f0fb49612
14 changed files with 82 additions and 81 deletions
|
@ -444,13 +444,10 @@ bool Ascii::DoHeartbeat(double network_time, double current_time)
|
|||
|
||||
string Ascii::LogExt()
|
||||
{
|
||||
const char* ext = getenv("ZEEK_LOG_SUFFIX");
|
||||
const char* ext = zeekenv("ZEEK_LOG_SUFFIX");
|
||||
|
||||
if ( ! ext )
|
||||
{
|
||||
ext = getenv("BRO_LOG_SUFFIX");
|
||||
if ( ! ext )
|
||||
ext = "log";
|
||||
}
|
||||
ext = "log";
|
||||
|
||||
return ext;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue