mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Disable more libmagic builtin checks that override the magic database.
This commit is contained in:
parent
6a5b825058
commit
da4a0bed03
2 changed files with 18 additions and 1 deletions
|
@ -1578,7 +1578,7 @@ void bro_init_magic(magic_t* cookie_ptr, int flags)
|
|||
if ( ! cookie_ptr || *cookie_ptr )
|
||||
return;
|
||||
|
||||
*cookie_ptr = magic_open(flags|MAGIC_NO_CHECK_TOKENS);
|
||||
*cookie_ptr = magic_open(flags|DISABLE_LIBMAGIC_BUILTIN_CHECKS);
|
||||
|
||||
// Use our custom database for mime types, but the default database
|
||||
// from libmagic for the verbose file type.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue