Bug 1029830 - file command incorrectly identifies the ASCII text file as bzip compressed file
Summary: file command incorrectly identifies the ASCII text file as bzip compressed file
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: file
Version: 5.6
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Jan Kaluža
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-13 10:20 UTC by Ramandeep Arora
Modified: 2018-12-03 20:39 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-02 17:21:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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


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