Bug 1476753

Summary: file-5.31 fails to detect PGM Netpbm files
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: fileAssignee: Marek Cermak <macermak>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: jkaluza, kdudka, macermak
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: file-5.31-8.fc27.x86_64 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-08 07:27:46 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:
Attachments:
Description Flags
A PGM file none

Description Petr Pisar 2017-07-31 11:16:50 UTC
Created attachment 1307034 [details]
A PGM file

After upgrading file to 5.31, PGM files are not detected:

$ rpm -q file
file-5.30-8.fc26.x86_64
$ file pgmfile
pgmfile: Netpbm image data, size = 216 x 334, rawbits, greymap

$ rpm -q file
file-5.31-1.fc27.x86_64
$ file pgmfile 
pgmfile: ASCII text

This is still issue with latest file-5.31-5.fc27.x86_64.

Comment 1 Marek Cermak 2017-08-08 07:27:46 UTC
Fixed in rawhide:

$ rpm -q file
file-5.31-8.fc27.x86_64
$ file mandrill.pgm
mandrill.pgm: Netpbm image data, size = 512 x 512, rawbits, greymap