Bug 1029830

Summary: file command incorrectly identifies the ASCII text file as bzip compressed file
Product: Red Hat Enterprise Linux 5 Reporter: Ramandeep Arora <raarora>
Component: fileAssignee: Jan Kaluža <jkaluza>
Status: CLOSED CURRENTRELEASE QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 5.6CC: jorton, sbhat
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-02 17:21:45 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:

Description Ramandeep Arora 2013-11-13 10:20:04 UTC
Description of problem:
"file" utility identifies incorrectly a text file

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

How reproducible:
Everytime for version file-4.17

Steps to Reproduce:
file-4.17 can't identify ASCII-text file starting with 'BZ' letters. It is identified as bzip compressed data

1. Create a "test" file with some text and keep the starting letters as "BZ" like "BZaljdnlnladlkvnlkanfdlkvnadf"

2. Save and run file command on it
   # file test

Actual results:

bz: bzip compressed data, version:

Expected results:

bz: ASCII text

Additional info:

Tested on the version file-5.04 available with RHEL-6 and it works fine