@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:
Robin Sommer 2011-06-02 21:57:24 -07:00
parent 5c0704eec8
commit fac328685b
8 changed files with 43 additions and 12 deletions

View file

@ -295,7 +295,7 @@ void OSFingerprint::load_config(const char* file)
uint32 ln=0;
char buf[MAXLINE];
char* p;
FILE* c = search_for_file( file, "osf", 0);
FILE* c = search_for_file( file, "osf", 0, false);
if (!c)
{