Skip to navigation

Bug Fix Advisory logrotate bug fix update

Advisory: RHBA-2011:0816-2
Type: Bug Fix Advisory
Severity: N/A
Issued on: 2011-07-21
Last updated on: 2011-07-21
Affected Products: Red Hat Enterprise Linux (v. 5 server)
Red Hat Enterprise Linux Desktop (v. 5 client)

Details

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

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

Updated packages

Red Hat Enterprise Linux (v. 5 server)

SRPMS:
logrotate-3.7.4-12.src.rpm
File outdated by:  RHBA-2012:0704
    MD5: 3a8510afb70699fe8bde1bedd77e9c25
SHA-256: 274c7e3dc1b06b2b70ed97cdbcd7c13ecead472f8478f1b4aaae96ccff652bd4
 
IA-32:
logrotate-3.7.4-12.i386.rpm
File outdated by:  RHBA-2012:0704
    MD5: d8ce9dcb05f08f5543ef15d480569ff9
SHA-256: 0b7ca48eeb0b41a097198919e0a638d4ab59656933ad74041daf924a92ffc835
 
IA-64:
logrotate-3.7.4-12.ia64.rpm
File outdated by:  RHBA-2012:0704
    MD5: e24ea9af79c0c24f9a767e8d8bf45e30
SHA-256: 30e6c701695a3daf5af2a11d40b3477b4d9360a2d37d389c4d1ad6d3d28c6cb0
 
PPC:
logrotate-3.7.4-12.ppc.rpm
File outdated by:  RHBA-2012:0704
    MD5: 381c216da057a9a4965615cb2ae14758
SHA-256: 370a25e482a818b023bd2b28db9d3835d276f1954ec3796da510ca6af4d69100
 
s390x:
logrotate-3.7.4-12.s390x.rpm
File outdated by:  RHBA-2012:0704
    MD5: 107c8d315a095b8b4867f54384a3b4b5
SHA-256: 38177312ad845eeccd6ed4a5debd05aafe94ad5f4971ddc17f37c2e485c6041c
 
x86_64:
logrotate-3.7.4-12.x86_64.rpm
File outdated by:  RHBA-2012:0704
    MD5: f15edeeca51382c084f6772ec72c717d
SHA-256: 00743496972656f6aec318e35d5df5328f53e71f7e77615766b71624b205dc74
 
Red Hat Enterprise Linux Desktop (v. 5 client)

SRPMS:
logrotate-3.7.4-12.src.rpm
File outdated by:  RHBA-2012:0704
    MD5: 3a8510afb70699fe8bde1bedd77e9c25
SHA-256: 274c7e3dc1b06b2b70ed97cdbcd7c13ecead472f8478f1b4aaae96ccff652bd4
 
IA-32:
logrotate-3.7.4-12.i386.rpm
File outdated by:  RHBA-2012:0704
    MD5: d8ce9dcb05f08f5543ef15d480569ff9
SHA-256: 0b7ca48eeb0b41a097198919e0a638d4ab59656933ad74041daf924a92ffc835
 
x86_64:
logrotate-3.7.4-12.x86_64.rpm
File outdated by:  RHBA-2012:0704
    MD5: f15edeeca51382c084f6772ec72c717d
SHA-256: 00743496972656f6aec318e35d5df5328f53e71f7e77615766b71624b205dc74
 
(The unlinked packages above are only available from the Red Hat Network)

Bugs fixed (see bugzilla for more information)

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


Keywords

logrotate


These packages are GPG signed by Red Hat for security. Our key and details on how to verify the signature are available from:
https://www.redhat.com/security/team/key/#package

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