diff options
author | robi6 <robi6@users.sourceforge.net> | 2014-09-03 00:20:38 +0200 |
---|---|---|
committer | robi6 <robi6@users.sourceforge.net> | 2014-09-03 00:20:38 +0200 |
commit | 3b5b530a4758758d005dc5f1015c045b83bf3326 (patch) | |
tree | d735279d1c95bc7c63a6d6cb27a96e9c82ea98e2 /src/magic_block_scan.c | |
parent | 81b4bae28a6e54616bef8e4c6c7718bbf1337cc4 (diff) |
for future use, interface for privat magic db
Diffstat (limited to 'src/magic_block_scan.c')
-rw-r--r-- | src/magic_block_scan.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/magic_block_scan.c b/src/magic_block_scan.c index 8785c7e..000cf80 100644 --- a/src/magic_block_scan.c +++ b/src/magic_block_scan.c @@ -33,6 +33,7 @@ //#define DEBUG_MAGIC_SCAN extern ext2_filsys current_fs ; +extern char* magicfile; ext2fs_block_bitmap d_bmap = NULL ; @@ -1367,7 +1368,7 @@ blk[0] = 1; cookie = magic_open(MAGIC_MIME | MAGIC_NO_CHECK_COMPRESS | MAGIC_NO_CHECK_ELF | MAGIC_CONTINUE); cookie_f = magic_open(MAGIC_NO_CHECK_COMPRESS | MAGIC_NO_CHECK_ELF | MAGIC_RAW ); -if ((! cookie) || magic_load(cookie, NULL) || (! cookie_f) || magic_load(cookie_f, NULL)){ +if ((! cookie) || magic_load(cookie, magicfile) || (! cookie_f) || magic_load(cookie_f, magicfile)){ fprintf(stderr,"ERROR: can't find libmagic\n"); goto errout; } |