Bug 873997

Summary: file thinks the attached jpg is "Minix filesystem, V2, 50968 zones"
Product: Red Hat Enterprise Linux 6 Reporter: james.hn.sears
Component: fileAssignee: Jan Kaluža <jkaluza>
Status: CLOSED ERRATA QA Contact: Stanislav Zidek <szidek>
Severity: low Docs Contact:
Priority: low    
Version: 6.5CC: ksrot, ovasik, szidek
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: file-5.04-16.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1162127 (view as bug list) Environment:
Last Closed: 2014-10-14 08:29:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1162127    
Attachments:
Description Flags
image file showing the problem none

Description james.hn.sears 2012-11-07 08:44:10 UTC
Description of problem:
file is bust in another way (see: Bug 849621)

What is recognised by ubuntu 12.04 'file' correctly is incorrectly recognised by RHEL 6.3

Version-Release number of selected component (if applicable):
6.3 totally up to date as of 20121107

How reproducible:
Easily + totally reliably (for me)

Steps to Reproduce:
Using the attached .jpg
$ file cho_wtxx_1963_0019_000_0380.jpg

Actual results:
cho_wtxx_1963_0019_000_0380.jpg: Minix filesystem, V2, 50968 zones

Expected results:
cho_wtxx_1963_0019_000_0380.jpg: JPEG image data...

file should be saying its a jpeg file type (ubuntu thinks it is; as does firefox on 6.3).

Additional info:
This is the second defect I have raised with respect to the 'file' command.

Can you please provide either a patch to fix this or an actual release fix?

Please let me know if I can provide more info.

Comment 1 james.hn.sears 2012-11-07 08:44:59 UTC
Created attachment 639910 [details]
image file showing the problem

Comment 3 Ondrej Vasik 2012-11-07 09:18:13 UTC
Thanks for report. It is a bit unfair to compare Ubuntu released in April 2012 and RHEL-6 released in 2010. Many changes in file were done meanwhile upstream - and enterprise distribution intentionally doesn't follow all of them.

Similar issue was reported in RHEL-5 as https://bugzilla.redhat.com/show_bug.cgi?id=758429 , but was not reproducible on RHEL-6. With your file, it is reproducible - however - again it is just pattern priority order. With file -k , file shows both types - jpeg and minix - although jpeg of course should be preferred as stronger pattern.

Bugzilla is not a support tool - if you want to speed up the update with fix and the issue is urgent for you, please contact Red Hat product support via our support portal at access.redhat.com . Please let them know about this existing bugzilla.

Comment 4 Jan Kaluža 2013-01-15 10:32:11 UTC
Upstream bugreport with proposed patch:

http://bugs.gw.com/view.php?id=232

Comment 5 RHEL Program Management 2013-10-14 00:18:07 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unable to address this
request at this time.

Red Hat invites you to ask your support representative to
propose this request, if appropriate, in the next release of
Red Hat Enterprise Linux.

Comment 12 errata-xmlrpc 2014-10-14 08:29:09 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2014-1606.html