mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 01:58:20 +00:00
Refactor search_for_file() util function.
It was getting too bloated and allocated memory in ways that were difficult to understand how to manage. Separated out primarily in to new find_file() and open_file()/open_package() functions. Also renamed other util functions for path-related things.
This commit is contained in:
parent
68227f112d
commit
90477df973
9 changed files with 331 additions and 304 deletions
|
@ -294,7 +294,8 @@ void OSFingerprint::load_config(const char* file)
|
|||
uint32 ln=0;
|
||||
char buf[MAXLINE];
|
||||
char* p;
|
||||
FILE* c = search_for_file(file, "osf", 0, false, 0);
|
||||
|
||||
FILE* c = open_file(find_file(file, bro_path(), "osf"));
|
||||
|
||||
if (!c)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue