From: Christos Zoulas Date: Sun, 27 Sep 2015 05:40:08 +0000 (+0000) Subject: disambiguate NTFS and db magic by adding a blocksize test. Add mime X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6b6bb794b0a9804c087ee8f50475b1f083f3614d;p=file disambiguate NTFS and db magic by adding a blocksize test. Add mime and extension. From Joerg Jenderek --- diff --git a/magic/Magdir/database b/magic/Magdir/database index f39acfda..f89b0f39 100644 --- a/magic/Magdir/database +++ b/magic/Magdir/database @@ -1,6 +1,6 @@ #------------------------------------------------------------------------------ -# $File: database,v 1.45 2015/09/09 16:25:29 christos Exp $ +# $File: database,v 1.46 2015/09/27 05:40:08 christos Exp $ # database: file(1) magic for various databases # # extracted from header/code files by Graeme Wilford (eep2gw@ee.surrey.ac.uk) @@ -377,7 +377,10 @@ >>>>>>>>>>>>0 use dbase3-memo-print # dBASE IV DBT with positive block size >>>>>>>20 uleshort >0 ->>>>>>>>0 use dbase4-memo-print +# dBASE IV DBT with valid block length like 512, 1024 +# multiple of 2 in between 16 and 16 K ,implies upper and lower bits are zero +>>>>>>>>20 uleshort&0x800f 0 +>>>>>>>>>0 use dbase4-memo-print # Print the information of dBase III DBT memo file 0 name dbase3-memo-print @@ -395,6 +398,8 @@ # Print the information of dBase IV DBT memo file 0 name dbase4-memo-print >0 lelong x dBase IV DBT +!:mime application/x-dbt +!:ext dbt # 8 character shorted main name of coresponding dBASE IV DBF file >8 ubelong >0x20000000 # skip unusual like for angest.dbt