Bug 771483 - double logrotate entry
Summary: double logrotate entry
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: clamav
Version: el5
Hardware: All
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Steven Pritchard
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-03 20:58 UTC by Peter Meier
Modified: 2012-01-20 01:12 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-01-20 01:12:33 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Peter Meier 2012-01-03 20:58:36 UTC
Description of problem:

Since the update to clamav-db-0.97.3-2 logrotate reports:

/etc/cron.daily/logrotate:

error: freshclam:6 duplicate log entry for /var/log/clamav/freshclam.log
error: found error in /var/log/clamav/freshclam.log , skipping

indeed:

# cat /etc/logrotate.d/freshclam
/var/log/clamav/freshclam.log {
        missingok
        notifempty
        create 644 clam clam
}
/var/log/clamav/freshclam.log {
        missingok
        notifempty
        create 644 clam clam
}
#  rpm -Vf /etc/logrotate.d/freshclam
missing   c /var/lib/clamav/daily.cvd
# rpm -V clamav-db 
missing   c /var/lib/clamav/daily.cvd

Version-Release number of selected component (if applicable):

# rpm -qf /etc/logrotate.d/freshclam
clamav-db-0.97.3-2.el5

# rpm -qi clamav-db
Name        : clamav-db                    Relocations: (not relocatable)
Version     : 0.97.3                            Vendor: Fedora Project
Release     : 2.el5                         Build Date: Wed 14 Dec 2011 01:02:24 AM CET
Install Date: Sun 01 Jan 2012 01:51:03 AM CET      Build Host: x86-10.phx2.fedoraproject.org
Group       : Applications/Databases        Source RPM: clamav-0.97.3-2.el5.src.rpm
Size        : 31044251                         License: GPLv2
Signature   : DSA/SHA1, Wed 14 Dec 2011 07:37:30 PM CET, Key ID 119cc036217521f6
Packager    : Fedora Project
URL         : http://www.clamav.net/
Summary     : Virus database for clamav
Description :
The actual virus database for clamav


Fix is trivial: Just remove the double entry.

This should be treated as urgent, as logrotate does currently not work with that.

Comment 1 Ian Forde 2012-01-09 20:43:08 UTC
The file /etc/cron.daily/freshclam is also doubled in this release.  Removing the double entry cleans it up also.

Comment 2 Nick Bebout 2012-01-20 01:12:33 UTC
This should be fixed in clamav-0.97.3-3


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