From: Christos Zoulas Date: Fri, 19 Apr 2013 20:11:43 +0000 (+0000) Subject: specialize the test to avoid clash with windows PNF files (Joerg Jenderek) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d2719fbc5af1f4cb3c174d078090c1c50b6106e5;p=file specialize the test to avoid clash with windows PNF files (Joerg Jenderek) --- diff --git a/magic/Magdir/pdp b/magic/Magdir/pdp index fa4b82b6..536dd1b4 100644 --- a/magic/Magdir/pdp +++ b/magic/Magdir/pdp @@ -1,6 +1,6 @@ #------------------------------------------------------------------------------ -# $File: pdp,v 1.8 2009/09/19 16:28:11 christos Exp $ +# $File: pdp,v 1.9 2013/04/19 20:11:43 christos Exp $ # pdp: file(1) magic for PDP-11 executable/object and APL workspace # 0 lelong 0101555 PDP-11 single precision APL workspace @@ -12,7 +12,13 @@ >8 leshort >0 not stripped >15 byte >0 - version %ld -0 leshort 0401 PDP-11 UNIX/RT ldp +# updated by Joerg Jenderek at Mar 2013 +# GRR: line below too general as it catches also Windows precompiled setup information *.PNF +0 leshort 0401 +# skip *.PNF with WinDirPathOffset 58h +>68 ulelong !0x00000058 PDP-11 UNIX/RT ldp +# skip *.PNF with high byte of InfVersionDatumCount zero +#>>15 byte !0 PDP-11 UNIX/RT ldp 0 leshort 0405 PDP-11 old overlay 0 leshort 0410 PDP-11 pure executable