mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 09:08:20 +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
|
@ -190,7 +190,7 @@ extern int int_list_cmp(const void* v1, const void* v2);
|
|||
extern const char* bro_path();
|
||||
extern const char* bro_prefixes();
|
||||
extern FILE* search_for_file(const char* filename, const char* ext,
|
||||
const char** full_filename);
|
||||
const char** full_filename, bool load_pkgs);
|
||||
|
||||
// Renames the given file to a new temporary name, and opens a new file with
|
||||
// the original name. Returns new file or NULL on error. Inits rotate_info if
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue