RHBA-2015:2174

Type: Bug fix
Severity: None
Published: 2015-11-19
Red Hat Enterprise Linux 7

The logrotate utility simplifies the administration of multiple log files by allowing their automatic rotation, compression, removal, and mailing. This update fixes the following bugs: * Previously, the logrotate utility ignored "maillast" directive when compression was in use. As a consequence, the subject of an email was the name of the rotated file instead of the name of the file removed by logrotate. With this update, logrotate has been fixed to respect "maillast" also in case of a compression and to set the subject correctly to the file which is going to be removed. (BZ#1244156) * The logrotate(8) manual page entry for the "olddir" directive did not mention the influence of "copy" and "copytruncate" on the "olddir" directive. The missing piece of information has been added, and users are now informed that "olddir" can be used when rotating files to different file system when "copy" or "copytruncate" directives are used. (BZ#1175292) * The logrotate utility incorrectly deleted data files alphabetically instead of based on their age when the "-%d-%m-%Y" date format was used. With this update, files returned by the glob() function are sorted according to the date extension. As a result, when the mentioned date format is used, the oldest log is now removed as expected. (BZ#1174208) * Previously, the daily cronjob of logrotate redirected all error messages to the /dev/null device file, thus suppressing all the relevant information for troubleshooting. With this update, all error messages containing detailed error reports are emailed to the root user. In addition, the /etc/cron.daily/logrotate script has been marked as a configuration file in RPM. (BZ#1174207) In addition, this update adds the following enhancement: * A new logrotate "createolddir" directive has been added to enable automatic creation of the olddir directory. For more information, see the logrotate(8) manual page. (BZ#1187161) Users of logrotate are advised to upgrade to these updated packages, which fix these bugs and add this enhancement.

Evidence and freshness

Data current

Last supporting evidence check: 2026-11-27T22:48:10.777Z UTC

Official vendor advisory

Red Hat Enterprise Linux 7

View source
Observed 2026-11-27T22:48:10.777Z UTC. Last updated 2026-10-07T09:19:25.417Z UTC.

Upstream Advisory

Affected Packages

  • logrotate 3.8.6-6.el7

Interested in being alerted when there are new versions of logrotate? Set up an alert.
RHBA-2015:2174: logrotate bug fix and enhancement update | Package Alert