The erlang magics were in the old System V format; the "STANDARDS CONFORMANCE" section of the file(1) manpage explains the problem. The spaces just needed to be escaped with backslashes.
The upshot of this is that any file which happens to have "Tue" starting from the fourth byte would match; the PostScript file in question just happened to serendipitously hit it. A diff is attached against current git; the PostScript file in question is now identified properly with it applied. Adam Buchbinder
From bdf5e7f566a7e8b28db50c5dac063695a5be3b42 Mon Sep 17 00:00:00 2001 From: Adam Buchbinder <adam.buchbin...@gmail.com> Date: Sat, 14 Feb 2009 21:15:44 -0500 Subject: [PATCH] Fix unescaped spaces in erlang magic. (Closes: #514056.) --- debian/patches/220-magic-update-erlang.dpatch | 23 +++++++++++++++++++++++ 1 files changed, 23 insertions(+), 0 deletions(-) create mode 100755 debian/patches/220-magic-update-erlang.dpatch diff --git a/debian/patches/220-magic-update-erlang.dpatch b/debian/patches/220-magic-update-erlang.dpatch new file mode 100755 index 0000000..d8985f1 --- /dev/null +++ b/debian/patches/220-magic-update-erlang.dpatch @@ -0,0 +1,23 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 220-magic-update-erlang.dpatch by Adam Buchbinder <adam.buchbin...@gmail.com> +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Escape string sequences; this magic was previously in System V format, +## DP: and was thus overly broad. See "Standards Compliance" section of the +## DP: file(1) manpage. (Closes: #514056) + +...@dpatch@ +diff -urNad file~/magic/Magdir/erlang file/magic/Magdir/erlang +--- file~/magic/Magdir/erlang 2009-01-26 12:07:28.000000000 -0500 ++++ file/magic/Magdir/erlang 2009-02-14 21:11:34.000000000 -0500 +@@ -12,7 +12,7 @@ + >8 string BEAM Erlang BEAM file + + # 4.2 version may have a copyright notice! +-4 string Tue Jan 22 14:32:44 MET 1991 Erlang JAM file - version 4.2 +-79 string Tue Jan 22 14:32:44 MET 1991 Erlang JAM file - version 4.2 ++4 string Tue\ Jan\ 22\ 14:32:44\ MET\ 1991 Erlang JAM file - version 4.2 ++79 string Tue\ Jan\ 22\ 14:32:44\ MET\ 1991 Erlang JAM file - version 4.2 + +-4 string 1.0 Fri Feb 3 09:55:56 MET 1995 Erlang JAM file - version 4.3 ++4 string 1.0\ Fri\ Feb\ 3\ 09:55:56\ MET\ 1995 Erlang JAM file - version 4.3 -- 1.5.6.3