]> granicus.if.org Git - file/commitdiff
PR/314: Jan Kaluza: Add QCW3 support
authorChristos Zoulas <christos@zoulas.com>
Wed, 8 Jan 2014 22:10:18 +0000 (22:10 +0000)
committerChristos Zoulas <christos@zoulas.com>
Wed, 8 Jan 2014 22:10:18 +0000 (22:10 +0000)
magic/Magdir/msdos

index 8f3e532529c7d8c0952cc4803428bf8cd60a0d87..3edb0ab823dadb876641645e466b4bec996a6227 100644 (file)
@@ -1,6 +1,6 @@
 
 #------------------------------------------------------------------------------
-# $File: msdos,v 1.84 2013/02/05 13:55:22 christos Exp $
+# $File: msdos,v 1.85 2013/03/09 22:36:00 christos Exp $
 # msdos:  file(1) magic for MS-DOS files
 #
 
 >>24   bequad  x       \b, %lld bytes
 >>32   belong  1       \b, AES-encrypted
 
+>4     belong  3       (v3)
+# Using the existence of the Backing File Offset to determine whether
+# to read Backing File Information
+>>8    bequad  >0       \b, has backing file
+# Note that this isn't a null-terminated string; the length is actually
+# (16.L). Assuming a null-terminated string happens to work usually, but it
+# may spew junk until it reaches a \0 in some cases. Also, since there's no
+# .Q modifier, we just use the bottom four bytes as an offset. Note that if
+# the file is over 4G, and the backing file path is stored after the first 4G,
+# the wrong filename will be printed. (This should be (8.Q), when that syntax
+# is introduced.)
+>>>(12.L)       string >\0     (path %s)
+>>24   bequad  x       \b, %lld bytes
+>>32   belong  1       \b, AES-encrypted
+
 >4     default x       (unknown version)
 
 0      string/b        QEVM            QEMU suspend to disk image