]> granicus.if.org Git - file/commitdiff
proper format for hex strings.
authorChristos Zoulas <christos@zoulas.com>
Tue, 8 Feb 2011 13:43:26 +0000 (13:43 +0000)
committerChristos Zoulas <christos@zoulas.com>
Tue, 8 Feb 2011 13:43:26 +0000 (13:43 +0000)
magic/Magdir/linux

index 08158e253043f991ef6a65953fdb71a5a76e53e9..b7ffdfe8007d27fcd4c1afa69118aab48fb2f7ed 100644 (file)
@@ -1,6 +1,6 @@
 
 #------------------------------------------------------------------------------
-# $File: linux,v 1.37 2010/12/17 14:19:51 christos Exp $
+# $File: linux,v 1.38 2011/01/25 18:38:17 christos Exp $
 # linux:  file(1) magic for Linux files
 #
 # Values for Linux/i386 binaries, from Daniel Quinlan <quinlan@yggdrasil.com>
 # start in 0x200
 >&(&-12.l-0x21) byte    x
 # display UUID in LVM format + display all 32 bytes (instead of max string length: 31)
->>&0x0          string  >0x2f          \b, UUID: %.6s
->>&0x6          string  >0x2f          \b-%.4s
->>&0xa          string  >0x2f          \b-%.4s
->>&0xe          string  >0x2f          \b-%.4s
->>&0x12         string  >0x2f          \b-%.4s
->>&0x16         string  >0x2f          \b-%.4s
->>&0x1a         string  >0x2f          \b-%.6s
+>>&0x0          string  >\x2f          \b, UUID: %.6s
+>>&0x6          string  >\x2f          \b-%.4s
+>>&0xa          string  >\x2f          \b-%.4s
+>>&0xe          string  >\x2f          \b-%.4s
+>>&0x12         string  >\x2f          \b-%.4s
+>>&0x16         string  >\x2f          \b-%.4s
+>>&0x1a         string  >\x2f          \b-%.6s
 >>&0x20         lequad  x              \b, size: %lld
 
 0x018           string  LVM2\ 001      LVM2 PV (Linux Logical Volume Manager)
 >&(&-12.l-0x21) byte    x
 # display UUID in LVM format + display all 32 bytes (instead of max string length: 31)
->>&0x0          string  >0x2f          \b, UUID: %.6s
->>&0x6          string  >0x2f          \b-%.4s
->>&0xa          string  >0x2f          \b-%.4s
->>&0xe          string  >0x2f          \b-%.4s
->>&0x12         string  >0x2f          \b-%.4s
->>&0x16         string  >0x2f          \b-%.4s
->>&0x1a         string  >0x2f          \b-%.6s
+>>&0x0          string  >\x2f          \b, UUID: %.6s
+>>&0x6          string  >\x2f          \b-%.4s
+>>&0xa          string  >\x2f          \b-%.4s
+>>&0xe          string  >\x2f          \b-%.4s
+>>&0x12         string  >\x2f          \b-%.4s
+>>&0x16         string  >\x2f          \b-%.4s
+>>&0x1a         string  >\x2f          \b-%.6s
 >>&0x20         lequad  x              \b, size: %lld
 
 0x418           string  LVM2\ 001      LVM2 PV (Linux Logical Volume Manager)
 >&(&-12.l-0x21) byte    x
 # display UUID in LVM format + display all 32 bytes (instead of max string length: 31)
->>&0x0          string  >0x2f          \b, UUID: %.6s
->>&0x6          string  >0x2f          \b-%.4s
->>&0xa          string  >0x2f          \b-%.4s
->>&0xe          string  >0x2f          \b-%.4s
->>&0x12         string  >0x2f          \b-%.4s
->>&0x16         string  >0x2f          \b-%.4s
->>&0x1a         string  >0x2f          \b-%.6s
+>>&0x0          string  >\x2f          \b, UUID: %.6s
+>>&0x6          string  >\x2f          \b-%.4s
+>>&0xa          string  >\x2f          \b-%.4s
+>>&0xe          string  >\x2f          \b-%.4s
+>>&0x12         string  >\x2f          \b-%.4s
+>>&0x16         string  >\x2f          \b-%.4s
+>>&0x1a         string  >\x2f          \b-%.6s
 >>&0x20         lequad  x              \b, size: %lld
 
 0x618           string  LVM2\ 001      LVM2 PV (Linux Logical Volume Manager)
 >&(&-12.l-0x21) byte    x              
 # display UUID in LVM format + display all 32 bytes (instead of max string length: 31)
->>&0x0          string  >0x2f          \b, UUID: %.6s
->>&0x6          string  >0x2f          \b-%.4s
->>&0xa          string  >0x2f          \b-%.4s
->>&0xe          string  >0x2f          \b-%.4s
->>&0x12         string  >0x2f          \b-%.4s
->>&0x16         string  >0x2f          \b-%.4s
->>&0x1a         string  >0x2f          \b-%.6s
+>>&0x0          string  >\x2f          \b, UUID: %.6s
+>>&0x6          string  >\x2f          \b-%.4s
+>>&0xa          string  >\x2f          \b-%.4s
+>>&0xe          string  >\x2f          \b-%.4s
+>>&0x12         string  >\x2f          \b-%.4s
+>>&0x16         string  >\x2f          \b-%.4s
+>>&0x1a         string  >\x2f          \b-%.6s
 >>&0x20         lequad  x              \b, size: %lld
 
 # LVM snapshot