Red Hat Bugzilla – Bug 241766
Logrotate ignores pre/postrotating scripts arguments
Last modified: 2010-10-22 11:22:13 EDT
Description of problem:
Pre/postrotate script argument is ignored.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create a test log:
mkdir /tmp/test_log; echo "hi there" > /tmp/test_log/the_log
2. Create a test config file /tmp/test_log/config with the following content:
3. Run logrotate -f /tmp/test_log/config
An empty line is echoed.
"/tmp/test_log/the_log" is echoed.
Created attachment 155685 [details]
This bugzilla has Keywords: Regression.
Since no regressions are allowed between releases,
it is also being proposed as a blocker for this release.
Please resolve ASAP.
Should I (or anyone) move this one to 4.7?
Moving to 4.7. This is not that serious.
We would greatly appreciate if this bug gets solved in 4.5 ASAP because our
postrotate scripts do a couple of things with each log beeing rotated (
compress, move to another location, etc... )
By now, we rolled back the logrotate binary to version 3.7.1-5 and added
logrotate to the skip list in up2date, but this is a little bit painful ...
Thanks in advance.
Any status on a fix for this bug?
(In reply to comment #9)
> Any status on a fix for this bug?
Patch is ready, will be present in 4.7.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.