Typo in qmail-scanner-reconfigure (qmail-scanner-2.10-9)
Posted: Sat Feb 02, 2013 11:35 am
Line 60 of /usr/bin/qmail-scanner-reconfigure reads as follows:
This line modifies /etc/logrotate.d/clamav (owned by the clamd package), but sadly the dot is not valid syntax in a logrotate file, so this causes a daily cron error e-mail:
The fix is to replace line with this one:
And re-run qmail-scanner-reconfigure (or remove the dot from the create statement in /etc/logrotate.d/clamav manually).
Code: Select all
perl -p -i -e "s|create.*|create 664 $CLAMD_USER.$CLAMD_USER|" /etc/logrotate.d/clamav
I guess instead of 'root.root' you might see 'qscand.qscand' if you use qmail-scanner without running ASL./etc/cron.daily/logrotate:
error: clamav:9 unknown user 'root.root'
error: found error in /var/log/clamav/clamd.log , skipping
The fix is to replace line with this one:
Code: Select all
perl -p -i -e "s|create.*|create 664 $CLAMD_USER $CLAMD_USER|" /etc/logrotate.d/clamav