Bug 997382 - Recursive log file rotation
Recursive log file rotation
Status: CLOSED ERRATA
Product: Fedora
Classification: Fedora
Component: privoxy (Show other bugs)
18
All Unspecified
unspecified Severity medium
: ---
: ---
Assigned To: Gwyn Ciesla
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-08-15 07:10 EDT by DaveG
Modified: 2013-08-23 20:03 EDT (History)
1 user (show)

See Also:
Fixed In Version: privoxy-3.0.21-6.fc19
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-08-23 20:02:54 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description DaveG 2013-08-15 07:10:29 EDT
Description of problem:
Log file rotation script (/etc/logrotate.d/privoxy) uses a wild-card selector. This results in recursive rotation of already rotated files with the standard logrotate configuration. Extra rotated log files are zero size.


Version-Release number of selected component (if applicable):
Spotted on F18, still in privoxy.git master on pkgs.fedoraproject.org.


How reproducible:
install and use privoxy, run logrotate.


Actual results:
ls /var/log/privoxy
logfile
logfile-date1
logfile-date1-date2
logfile-date1-date2-date3
...
logfile-date2
...


Expected results:
logfile
logfile-date1
logfile-date2
...


Additional info:
The log file name is set in the packaged configuration so the logrotate script can hard-code the full path name:
# diff /etc/logrotate.d/privoxy.orig /etc/logrotate.d/privoxy
1c1
< /var/log/privoxy/* {
---
> /var/log/privoxy/logfile {
Comment 1 Fedora Update System 2013-08-15 09:48:31 EDT
privoxy-3.0.21-6.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/privoxy-3.0.21-6.fc19
Comment 2 Fedora Update System 2013-08-15 09:48:42 EDT
privoxy-3.0.21-6.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/privoxy-3.0.21-6.fc18
Comment 3 Fedora Update System 2013-08-15 19:28:50 EDT
Package privoxy-3.0.21-6.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing privoxy-3.0.21-6.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-14836/privoxy-3.0.21-6.fc19
then log in and leave karma (feedback).
Comment 4 Fedora Update System 2013-08-23 20:02:54 EDT
privoxy-3.0.21-6.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 5 Fedora Update System 2013-08-23 20:03:16 EDT
privoxy-3.0.21-6.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.

Note You need to log in before you can comment on or make changes to this bug.