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-2011:0816 - Bug Fix Advisory
Issued:
2011-07-21
Updated:
2011-07-21

RHBA-2011:0816 - Bug Fix Advisory

  • Overview
  • Updated Packages

Synopsis

logrotate 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

An updated logrotate package that fixes various bugs is now available for Red
Hat Enterprise Linux 5.

Description

The logrotate utility simplifies the administration of multiple log files,
allowing the automatic rotation, compression, removal, and mailing of log files.

This update fixes the following bugs:

  • When the logrotate.status file was corrupted, the logrotate utility correctly

displayed an error message, but did not return a non-zero exit code to indicate
a failure. With this update, a patch has been applied to address this issue, and
a corrupted logrotate.status file now causes logrotate to terminate with error
code 1 as expected. (BZ#461494)

  • The "size" configuration option allows a user to specify the minimum size a

particular file must reach in order for logrotate to start rotating it. Prior to
this update, the maximum supported value of this option was limited to 4
gigabytes. With this update, this limit has been increased to 16 exabytes.
(BZ#484075)

  • When used to rotate the /var/log/btmp file, previous versions of the logrotate

utility incorrectly changed the permissions of this file to "0644". With this
update, a default configuration entry for the /var/log/btmp file has been added
to ensure the permissions are correctly set to "0600". (BZ#485553)

  • The "missingok" configuration option allows a user to prevent the logrotate

utility from reporting an error when a particular log file is missing.
Previously, the presence of a wildcard character (typically "*") in a file name
caused logrotate to ignore this option. With this update, a patch has been
applied to address this issue, and the use of the wildcard characters in the
file names no longer causes logrotate to ignore the "missingok" option.
(BZ#540119)

  • Prior to this update, when the logrotate utility failed to rename a log file,

it did not detect this error and incorrectly overwrote or even deleted the
original file. To prevent a loss of potentially important logs, this update
adapts the utility not to rotate files that cannot be renamed. (BZ#567365)

  • Previously, a recursive use of the "include" directive in a configuration file

caused the logrotate utility to terminate unexpectedly with a segmentation
fault. This update applies an upstream patch that limits the maximum level of
recursion, and the recursive use of the "include" directive no longer causes
logrotate to crash. (BZ#574784)

  • Due to an error in the application logic, the logrotate utility passed an

argument with a wildcard to the prerotate and postrotate scripts even when the
"sharedscripts" configuration option was specified. With this update, this error
no longer occurs, and specifying the "sharedscripts" option now causes logrotate
to correctly pass a full path to a particular log. (BZ#579680)

  • Previously, the logrotate(8) manual page did not provide a description of the

arguments that are passed to the prerotate and postrotate scripts. This update
extends the manual page to include this information. (BZ#474013)

  • Previously, the "AUTHORS" section of the logrotate(8) manual page did not

include the current maintainer of the logrotate utility. This error has been
fixed, and logrotate(8) now contains an up-to-date list of authors.
Additionally, the manual page now provides a link to the project homepage.
(BZ#622059)

  • In the logrotate(8) manual page, the description of the "size" configuration

option stated that log files are rotated when they grow bigger than the
specified file size. Since this description was rather vague, this update
corrects the manual page to provide a more accurate description of this option.
(BZ#638591)

  • Previously, the logrotate(8) manual page did not provide a description of the

"-?", "--help", "--verbose", and "--debug" command line options. This error has
been fixed, and the manual page now covers all supported command line options as
expected. (BZ#642936)

All users of logrotate are advised to upgrade to this updated package, which
fixes these bugs.

Solution

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

This update is available via 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 - 461494 - Bad exit code when logrotate.status is corrupt (0)
  • BZ - 474013 - logrotate documentation does not discuss script arguments
  • BZ - 484075 - logrotate "size" directive cannot exceed 1895825408 bytes
  • BZ - 485553 - logrotate breaks permission on /var/log/btmp
  • BZ - 540119 - missingok problem with globs
  • BZ - 567365 - log deleted after "gzip: stdin: Input/output error"
  • BZ - 574784 - logrotate doesn't prevent recursive includes
  • BZ - 579680 - logrotate postrotate script args
  • BZ - 622059 - Author info is wrong in man page.
  • BZ - 638591 - Ambiguity in logrotate man page (definition of "size" parameter)

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
logrotate-3.7.4-12.src.rpm SHA-256: 274c7e3dc1b06b2b70ed97cdbcd7c13ecead472f8478f1b4aaae96ccff652bd4
x86_64
logrotate-3.7.4-12.x86_64.rpm SHA-256: 00743496972656f6aec318e35d5df5328f53e71f7e77615766b71624b205dc74
ia64
logrotate-3.7.4-12.ia64.rpm SHA-256: 30e6c701695a3daf5af2a11d40b3477b4d9360a2d37d389c4d1ad6d3d28c6cb0
i386
logrotate-3.7.4-12.i386.rpm SHA-256: 0b7ca48eeb0b41a097198919e0a638d4ab59656933ad74041daf924a92ffc835

Red Hat Enterprise Linux Workstation 5

SRPM
logrotate-3.7.4-12.src.rpm SHA-256: 274c7e3dc1b06b2b70ed97cdbcd7c13ecead472f8478f1b4aaae96ccff652bd4
x86_64
logrotate-3.7.4-12.x86_64.rpm SHA-256: 00743496972656f6aec318e35d5df5328f53e71f7e77615766b71624b205dc74
i386
logrotate-3.7.4-12.i386.rpm SHA-256: 0b7ca48eeb0b41a097198919e0a638d4ab59656933ad74041daf924a92ffc835

Red Hat Enterprise Linux Desktop 5

SRPM
logrotate-3.7.4-12.src.rpm SHA-256: 274c7e3dc1b06b2b70ed97cdbcd7c13ecead472f8478f1b4aaae96ccff652bd4
x86_64
logrotate-3.7.4-12.x86_64.rpm SHA-256: 00743496972656f6aec318e35d5df5328f53e71f7e77615766b71624b205dc74
i386
logrotate-3.7.4-12.i386.rpm SHA-256: 0b7ca48eeb0b41a097198919e0a638d4ab59656933ad74041daf924a92ffc835

Red Hat Enterprise Linux for IBM z Systems 5

SRPM
logrotate-3.7.4-12.src.rpm SHA-256: 274c7e3dc1b06b2b70ed97cdbcd7c13ecead472f8478f1b4aaae96ccff652bd4
s390x
logrotate-3.7.4-12.s390x.rpm SHA-256: 38177312ad845eeccd6ed4a5debd05aafe94ad5f4971ddc17f37c2e485c6041c

Red Hat Enterprise Linux for Power, big endian 5

SRPM
logrotate-3.7.4-12.src.rpm SHA-256: 274c7e3dc1b06b2b70ed97cdbcd7c13ecead472f8478f1b4aaae96ccff652bd4
ppc
logrotate-3.7.4-12.ppc.rpm SHA-256: 370a25e482a818b023bd2b28db9d3835d276f1954ec3796da510ca6af4d69100

Red Hat Enterprise Linux Server from RHUI 5

SRPM
logrotate-3.7.4-12.src.rpm SHA-256: 274c7e3dc1b06b2b70ed97cdbcd7c13ecead472f8478f1b4aaae96ccff652bd4
x86_64
logrotate-3.7.4-12.x86_64.rpm SHA-256: 00743496972656f6aec318e35d5df5328f53e71f7e77615766b71624b205dc74
i386
logrotate-3.7.4-12.i386.rpm SHA-256: 0b7ca48eeb0b41a097198919e0a638d4ab59656933ad74041daf924a92ffc835

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