Disable more libmagic builtin checks that override the magic database.

This commit is contained in:
Jon Siwek 2013-07-09 15:55:33 -05:00
parent 6a5b825058
commit da4a0bed03
2 changed files with 18 additions and 1 deletions

View file

@ -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.