mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 17:48:21 +00:00
@load now supports loading a directory.
With a directory "foo" somewhere in BROPATH, "@load foo" now checks if there's a file "foo/__load__.bro". If so, it reads that file in. (If not, Bro reports the same error as before, complaining that it can't read a directory).
This commit is contained in:
parent
5c0704eec8
commit
fac328685b
8 changed files with 43 additions and 12 deletions
|
@ -343,7 +343,7 @@ vector<ParseLocationRec> parse_location_string(const string& s)
|
|||
plr.type = plrUnknown;
|
||||
|
||||
FILE* throwaway = search_for_file(filename.c_str(), "bro",
|
||||
&full_filename);
|
||||
&full_filename, true);
|
||||
if ( ! throwaway )
|
||||
{
|
||||
debug_msg("No such policy file: %s.\n", filename.c_str());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue