Bug 2269800

Summary: Syntax error in /usr/share/doc/clamd/clamd.logrotate
Product: [Fedora] Fedora Reporter: Tim Landscheidt <tim>
Component: clamavAssignee: Sergio Basto <sergio>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 38CC: anon.amish, bennie.joubert, dennisf, dwmw2, edgar.hoch, extras-qa, gbcox, gk, jskarvad, j, lee.jnk, ondrejj, orion, redhat-bugzilla, rh-bugzilla, sergio, steve, tim, tremble
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1679375 Environment:
Last Closed: 2024-03-16 16:22:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Tim Landscheidt 2024-03-16 14:44:35 UTC
+++ This bug was initially created as a clone of Bug #1679375 +++

Commit 8a56d4c9abdf9c924a9fc931ba5a8da485296eec, in response to bug #1610735, introduced a syntax error to clamd.logrotate:

| /var/log/clamd.<SERVICE> {
|         monthly
|         notifempty
|         missingok

|         postrotate
|                 pkill -u <USER> -HUP -f '/usr/sbin/clamd -c /etc/clamd.d/<SERVICE>.conf >/dev/null 2>&1 || :
                                          ^
|         endscript
| }

exim-clamav uses this file as a template to install to /etc/logrotate.d (cf. bug #1679375), therefore triggering this error on every log rotation.

The quote needs to be removed in F38's, F39's and Rawhide's clamd.

Comment 1 Sergio Basto 2024-03-16 15:58:00 UTC
is not a missing quote ? 

pkill -u <USER> -HUP -f '/usr/sbin/clamd -c /etc/clamd.d/<SERVICE>.conf' >/dev/null 2>&1 || :

Comment 2 Sergio Basto 2024-03-16 16:22:04 UTC

*** This bug has been marked as a duplicate of bug 1679375 ***