From a74888d182a2a8ec44939a0fb01dc4473bd9a48b Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Fri, 4 Oct 2019 18:07:46 +0000 Subject: [PATCH] Use the number of sections to disambiguate zlib compressed files from VAX coff binaries. --- magic/Magdir/vax | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/magic/Magdir/vax b/magic/Magdir/vax index 21c5b8db..f3deffa5 100644 --- a/magic/Magdir/vax +++ b/magic/Magdir/vax @@ -1,6 +1,6 @@ #------------------------------------------------------------------------------ -# $File: vax,v 1.8 2013/01/09 22:37:24 christos Exp $ +# $File: vax,v 1.10 2019/10/04 18:07:46 christos Exp $ # vax: file(1) magic for VAX executable/object and APL workspace # 0 lelong 0101557 VAX single precision APL workspace @@ -19,9 +19,14 @@ # The `versions' were commented out, but have been un-commented out. # (Was the problem just one of endianness?) # -0 leshort 0570 VAX COFF executable ->12 lelong >0 not stripped ->22 leshort >0 - version %d -0 leshort 0575 VAX COFF pure executable ->12 lelong >0 not stripped ->22 leshort >0 - version %d +0 leshort 0570 +>2 uleshort <100 VAX COFF executable, sections %d +>>4 ledate x \b, created %s +>>12 lelong >0 \b, not stripped +>>22 leshort >0 \b, version %d + +0 leshort 0575 +>2 uleshort <100 VAX COFF pure executable, sections %d +>>4 ledate x \b, created %s +>>12 lelong >0 \b, not stripped +>>22 leshort >0 \b, version %d -- 2.40.0