]> granicus.if.org Git - file/commitdiff
disambiguate NTFS and db magic by adding a blocksize test. Add mime
authorChristos Zoulas <christos@zoulas.com>
Sun, 27 Sep 2015 05:40:08 +0000 (05:40 +0000)
committerChristos Zoulas <christos@zoulas.com>
Sun, 27 Sep 2015 05:40:08 +0000 (05:40 +0000)
and extension. From Joerg Jenderek

magic/Magdir/database

index f39acfdadc6e2ec807f4d1d3b96940f4f08bf180..f89b0f398c96e59631710bec819dd99c9c16b132 100644 (file)
@@ -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)
 >>>>>>>>>>>>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
 #              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