Bug 498036 - Elang JAM file definition breaks detection of postscript-files
Summary: Elang JAM file definition breaks detection of postscript-files
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: file
Version: 10
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Daniel Novotny
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-04-28 15:40 UTC by Sven
Modified: 2009-05-02 16:41 UTC (History)
1 user (show)

Fixed In Version: 4.26-5.fc10
Clone Of:
Environment:
Last Closed: 2009-04-29 12:09:28 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Sven 2009-04-28 15:40:40 UTC
Description of problem:

missing quotes in /usr/share/magic for Erlang JAM file definition 

Version-Release number of selected component (if applicable):

$ file --version
file-4.26


How reproducible:

$ echo '1234Tue Mar 3 19:47:42 2009' |file -
  
Actual results:
/dev/stdin: Jan 22 14:32:44 MET 1991\011Erlang JAM file - version 4.2


Expected results:
/dev/stdin: ASCII text


Additional info:

this bug is mentioned in
https://bugs.launchpad.net/ubuntu/+source/file/+bug/248619
where it prevents printing of openoffice documents, that were
created on tuesdays.

please just add the missing quotes.

--- magic	2009-04-28 17:18:25.000000000 +0200
+++ magic.erlangfix	2009-04-28 17:19:15.000000000 +0200
@@ -4855,10 +4855,10 @@
 >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
 
 #------------------------------------------------------------------------------
 # ESRI Shapefile format (.shp .shx .dbf=DBaseIII)

Comment 1 Fedora Update System 2009-04-29 10:28:12 UTC
file-4.26-5.fc10 has been submitted as an update for Fedora 10.
http://admin.fedoraproject.org/updates/file-4.26-5.fc10

Comment 2 Daniel Novotny 2009-04-29 10:29:57 UTC
hello Sven,
Thanks for your bug report and patch.
I fixed this in rawhide and F10; due to F11 development
freeze, I'm unable to fix this in F11 now, will do
it as soon as possible.

Comment 3 Sven 2009-04-29 12:09:28 UTC
Hello Daniel,

$ rpm -q file
file-4.26-5.fc10.i386
$ echo '1234Tue Mar 3 19:47:42 2009' |file -
/dev/stdin: ASCII text
$ file WillNotPrintOnTuesday.ps 
WillNotPrintOnTuesday.ps: PostScript document text conforming DSC level 3.0, Level 3

Thank you very much. Good luck for F11.

Comment 4 Fedora Update System 2009-05-02 16:41:16 UTC
file-4.26-5.fc10 has been pushed to the Fedora 10 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.