Bug 10488

Summary: JPEG not in /usr/share/magic
Product: [Retired] Red Hat Linux Reporter: Justin R. Miller <justin>
Component: fileAssignee: Crutcher Dunnavant <crutcher>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-05-15 15:15:40 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Justin R. Miller 2000-03-31 18:15:31 UTC
Hi,

In using a script I wrote that performs 'file' on a file and greps for
'JPEG' or 'GIF', I noticed that JPEGs weren't coming through.  Seems there
is no entry for JPEG in the new magic file.  It was there in the old one...

Thanks,
Justin

Comment 1 Jeff Johnson 2000-05-15 15:15:59 UTC
Fixed in file-3.30-1.

bash$ grep -i JPEG /usr/share/magic
# JPEG images
#       0       string          \377\330\377\340        JPEG file
# both of which turn into "JPEG image data" here.
0       beshort         0xffd8          JPEG image data
# HSI is Handmade Software's proprietary JPEG encoding scheme
0       string          hsi1            JPEG image data, HSI proprietary
# JPEG images
#       0       string          \377\330\377\340        JPEG file
# both of which turn into "JPEG image data" here.
0       beshort         0xffd8          JPEG image data
# tests are not fool-proof since some perfectly valid JPEGs are currently
# HSI is Handmade Software's proprietary JPEG encoding scheme
0       string          hsi1            JPEG image data, HSI proprietary
bash$ rpm -q file
file-3.30-1