Skip to navigation Skip to main content

Utilities

  • Subscriptions
  • Downloads
  • Red Hat Console
  • Get Support
Red Hat Customer Portal
  • Subscriptions
  • Downloads
  • Red Hat Console
  • Get Support
  • Products

    Top Products

    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    All Products

    Downloads and Containers

    • Downloads
    • Packages
    • Containers

    Top Resources

    • Documentation
    • Product Life Cycles
    • Product Compliance
    • Errata
  • Knowledge

    Red Hat Knowledge Center

    • Knowledgebase Solutions
    • Knowledgebase Articles
    • Customer Portal Labs
    • Errata

    Top Product Docs

    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    All Product Docs

    Training and Certification

    • About
    • Course Index
    • Certification Index
    • Skill Assessment
  • Security

    Red Hat Product Security Center

    • Security Updates
    • Security Advisories
    • Red Hat CVE Database
    • Errata

    References

    • Security Bulletins
    • Severity Ratings
    • Security Data

    Top Resources

    • Security Labs
    • Backporting Policies
    • Security Blog
  • Support

    Red Hat Support

    • Support Cases
    • Troubleshoot
    • Get Support
    • Contact Red Hat Support

    Red Hat Community Support

    • Customer Portal Community
    • Community Discussions
    • Red Hat Accelerator Program

    Top Resources

    • Product Life Cycles
    • Customer Portal Labs
    • Red Hat JBoss Supported Configurations
    • Red Hat Lightspeed
Or troubleshoot an issue.

Select Your Language

  • English
  • Français
  • 한국어
  • 日本語
  • 中文 (中国)

Infrastructure and Management

  • Red Hat Enterprise Linux
  • Red Hat Satellite
  • Red Hat Subscription Management
  • Red Hat Lightspeed
  • Red Hat Ansible Automation Platform

Cloud Computing

  • Red Hat OpenShift
  • Red Hat OpenStack Platform
  • Red Hat OpenShift
  • Red Hat OpenShift AI
  • Red Hat OpenShift Dedicated
  • Red Hat Advanced Cluster Security for Kubernetes
  • Red Hat Advanced Cluster Management for Kubernetes
  • Red Hat Quay
  • Red Hat OpenShift Dev Spaces
  • Red Hat OpenShift Service on AWS

Storage

  • Red Hat Gluster Storage
  • Red Hat Hyperconverged Infrastructure
  • Red Hat Ceph Storage
  • Red Hat OpenShift Data Foundation

Runtimes

  • Red Hat Runtimes
  • Red Hat JBoss Enterprise Application Platform
  • Red Hat Data Grid
  • Red Hat JBoss Web Server
  • Red Hat build of Keycloak
  • Red Hat support for Spring Boot
  • Red Hat build of Node.js
  • Red Hat build of Quarkus

Integration and Automation

  • Red Hat Application Foundations
  • Red Hat Fuse
  • Red Hat AMQ
  • Red Hat 3scale API Management
All Products
Red Hat Product Errata RHBA-2012:0201 - Bug Fix Advisory
Issued:
2012-02-20
Updated:
2012-02-20

RHBA-2012:0201 - Bug Fix Advisory

  • Overview
  • Updated Packages

Synopsis

file bug fix update

Type/Severity

Bug Fix Advisory

Red Hat Lightspeed patch analysis

Identify and remediate systems affected by this advisory.

View affected systems

Topic

Updated file packages that fix various bugs are now available for Red Hat
Enterprise Linux 5.

Description

The File utility is used to identify a particular file according to the type of
data contained in the file.

This update fixes the following bugs:

  • Previously, the file utility always checked a section of the core file which

was only used by FreeBSD when looking up command names. As a consequence, an
incorrect command name could be reported. This update checks this offset only if
the core file was generated on a FreeBSD plattfrom. Now, the file utility
displays the correct file name. (BZ#486328)

  • Previously, the file utility did not correctly recognize file system dumps

generated by the "dump" utility on PowerPC and IBM System z platforms which were
wrongly identified as a "JVT NAL" sequence. This update modifies the order of
the magic patterns. Now, the file utility correctly identifies these dumps.
(BZ#489493)

  • Previously, the Note field stored in Executable and Linkable Format (ELF)

binaries was wrongly processed twice. As a consequence, the message "for
GNU/Linux X.Y.Z" was displayed twice for certain binary files. This update
modifies the process. Now, the Note field is processed only once. (BZ#494831)

  • Previously, the definition for the Multipurpose Internet Mail Extensions

(MIME) type "XML" was missing in the magic file. As a consequence, the MIME type
for XML files was not displayed. This update adds this MIME type to the magic
file. (BZ#498671)

  • Previously, the file utility did not recognize the swap file system on PowerPC

platforms. Now, a new magic pattern for swap on PowerPC platforms is added and
the file utility now identifies the swapspace correctly. (BZ#504417)

  • Previously, the "msword" MIME type was listed two times in DOC/XLS magic

patterns. As a consequence, the "application/msword" MIME type was displayed
twice for certain Microsoft Office 2007 files. Now, the second MIME type
definition is removed. (BZ#505656)

  • Previously, the magic pattern for detecting the PPD files did not work as

expected. As a consequence, the file utility truncated the "version" string of
certain PPD files. This update displays the "version" string correctly and no
longer truncates the version number. (BZ#508688)

  • Previously, the manual page did not mention that a 0 exit code was returned

when input files were not found. This update adds the missing information to the
manual page. (BZ#548450)

  • Previously, the file utility always attempted to read complete files from

stdin to get additional information about ELF binary even when the file was not
an ELF binary. As a consequence, the process used a large amount of memory and
took a long time. This update detects if a file is an ELF binary using the ELF
magic bytes and reads the complete file only when the file is an ELF binary.
(BZ#618910)

  • Previously, the file utility could wrongly recognize gzip files as FLC files.

This update changes the order of gzip and FLC magic patterns. Now, the file
utility identifies gzip files correctly. (BZ#641838)

  • Previously, the GFS1 and GFS2 file systems shared the same magic number in the

superblock which the file utility used to identify the GFS2 file system. As a
consequence, the file utility wrongly recognized GFS2 file systems as GFS1 file
systems. This update adds a new magic pattern for the GFS2 file system. Now, the
file utility identifies GFS2 correctly. (BZ#668125)

  • Previously, two magic patterns for XML identification were wrongly merged into

one. As a consequence, the file utility could not identify the MIME type for XML
files starting with "?xml". This update splits these two patterns. Now, the
correct MIME type is displayed. (BZ#692435)

  • Previously, the file utility could wrongly recognize JPEG files as Minix file

systems. This update changes the order of JPEG and Minix magic patterns. Now the
file utility recognizes JPEG files correctly. (BZ#758429)

All users of the file utility are advised to upgrade to these updated packages,
which fix these bugs.

Solution

Before applying this update, make sure all previously-released errata relevant
to your system have been applied.

This update is available via the Red Hat Network. Details on how to use the Red
Hat Network to apply this update are available at
https://access.redhat.com/kb/docs/DOC-11259

Affected Products

  • Red Hat Enterprise Linux Server 5 x86_64
  • Red Hat Enterprise Linux Server 5 ia64
  • Red Hat Enterprise Linux Server 5 i386
  • Red Hat Enterprise Linux Workstation 5 x86_64
  • Red Hat Enterprise Linux Workstation 5 i386
  • Red Hat Enterprise Linux Desktop 5 x86_64
  • Red Hat Enterprise Linux Desktop 5 i386
  • Red Hat Enterprise Linux for IBM z Systems 5 s390x
  • Red Hat Enterprise Linux for Power, big endian 5 ppc
  • Red Hat Enterprise Linux Server from RHUI 5 x86_64
  • Red Hat Enterprise Linux Server from RHUI 5 i386

Fixes

  • BZ - 486328 - Incorrect command name from the core file
  • BZ - 489493 - file on ppc/s390x is unable to correctly identify files created by dump
  • BZ - 494831 - file displays "for GNU/Linux 2.6.9" message twice
  • BZ - 498671 - file utility does not produce MIME type for XML files
  • BZ - 504417 - file -s is not able to detect swap signature on ppc
  • BZ - 505656 - File -i produces strange results for MS Office 2007 files.
  • BZ - 508688 - noncomplete output of file executable
  • BZ - 548450 - the file command returns zero exit code even in case of unexisting file being tested
  • BZ - 618910 - /usr/bin/lesspipe.sh performance on huge files
  • BZ - 641838 - file(1) mis-handle gzip file as FLC file.
  • BZ - 668125 - File identifies GFS2 filesystems as GFS1 filesystems
  • BZ - 751030 - File does not correctly identify a linux kernel image
  • BZ - 751032 - file doesn't properly detect RPM architectures
  • BZ - 758429 - file command incorrectly identifies a JPEG file as being a Minix filesystem

CVEs

(none)

References

(none)

Note: More recent versions of these packages may be available. Click a package name for more details.

Red Hat Enterprise Linux Server 5

SRPM
file-4.17-21.src.rpm SHA-256: a707f4666e69c72b6fb3198a23b11c0257258df0795ac1d0fed5935e0bf1a6af
x86_64
file-4.17-21.x86_64.rpm SHA-256: a3e79ce5b427dd0fcdf70c89a246b9417d93968a516faebf5be96f460432c57e
ia64
file-4.17-21.ia64.rpm SHA-256: 352438c6b84972af6a7f913f3fc36e64850963e7ef5bc36d148e55353e0a7d16
i386
file-4.17-21.i386.rpm SHA-256: 6e8d0f2b69f872ae5fa9aef5da48027d2fbbd35086ace975f1a8dfed92706c3a

Red Hat Enterprise Linux Workstation 5

SRPM
file-4.17-21.src.rpm SHA-256: a707f4666e69c72b6fb3198a23b11c0257258df0795ac1d0fed5935e0bf1a6af
x86_64
file-4.17-21.x86_64.rpm SHA-256: a3e79ce5b427dd0fcdf70c89a246b9417d93968a516faebf5be96f460432c57e
i386
file-4.17-21.i386.rpm SHA-256: 6e8d0f2b69f872ae5fa9aef5da48027d2fbbd35086ace975f1a8dfed92706c3a

Red Hat Enterprise Linux Desktop 5

SRPM
file-4.17-21.src.rpm SHA-256: a707f4666e69c72b6fb3198a23b11c0257258df0795ac1d0fed5935e0bf1a6af
x86_64
file-4.17-21.x86_64.rpm SHA-256: a3e79ce5b427dd0fcdf70c89a246b9417d93968a516faebf5be96f460432c57e
i386
file-4.17-21.i386.rpm SHA-256: 6e8d0f2b69f872ae5fa9aef5da48027d2fbbd35086ace975f1a8dfed92706c3a

Red Hat Enterprise Linux for IBM z Systems 5

SRPM
file-4.17-21.src.rpm SHA-256: a707f4666e69c72b6fb3198a23b11c0257258df0795ac1d0fed5935e0bf1a6af
s390x
file-4.17-21.s390x.rpm SHA-256: 7ecffebf57e788a2caa6ba91f673cc1a4312b9bb31a919345ede80cc1ab2f937

Red Hat Enterprise Linux for Power, big endian 5

SRPM
file-4.17-21.src.rpm SHA-256: a707f4666e69c72b6fb3198a23b11c0257258df0795ac1d0fed5935e0bf1a6af
ppc
file-4.17-21.ppc.rpm SHA-256: 948b05a076db695e335ab6ead696ce91b4cfffaae267b091ac81a3af722278e7

Red Hat Enterprise Linux Server from RHUI 5

SRPM
file-4.17-21.src.rpm SHA-256: a707f4666e69c72b6fb3198a23b11c0257258df0795ac1d0fed5935e0bf1a6af
x86_64
file-4.17-21.x86_64.rpm SHA-256: a3e79ce5b427dd0fcdf70c89a246b9417d93968a516faebf5be96f460432c57e
i386
file-4.17-21.i386.rpm SHA-256: 6e8d0f2b69f872ae5fa9aef5da48027d2fbbd35086ace975f1a8dfed92706c3a

The Red Hat security contact is secalert@redhat.com. More contact details at https://access.redhat.com/security/team/contact/.

Red Hat LinkedIn YouTube Facebook X, formerly Twitter

Quick Links

  • Downloads
  • Subscriptions
  • Support Cases
  • Customer Service
  • Product Documentation

Help

  • Contact Us
  • Customer Portal FAQ
  • Log-in Assistance

Site Info

  • Trust Red Hat
  • Browser Support Policy
  • Accessibility
  • Awards and Recognition
  • Colophon

Related Sites

  • redhat.com
  • developers.redhat.com
  • connect.redhat.com
  • cloud.redhat.com

Red Hat legal and privacy links

  • About Red Hat
  • Jobs
  • Events
  • Locations
  • Contact Red Hat
  • Red Hat Blog
  • Inclusion at Red Hat
  • Cool Stuff Store
  • Red Hat Summit
© 2025 Red Hat

Red Hat legal and privacy links

  • Privacy statement
  • Terms of use
  • All policies and guidelines
  • Digital accessibility