Page 1 of 1

Typo in qmail-scanner-reconfigure (qmail-scanner-2.10-9)

Posted: Sat Feb 02, 2013 11:35 am
by breun
Line 60 of /usr/bin/qmail-scanner-reconfigure reads as follows:

Code: Select all

perl -p -i -e "s|create.*|create 664 $CLAMD_USER.$CLAMD_USER|" /etc/logrotate.d/clamav
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:
/etc/cron.daily/logrotate:

error: clamav:9 unknown user 'root.root'
error: found error in /var/log/clamav/clamd.log , skipping
I guess instead of 'root.root' you might see 'qscand.qscand' if you use qmail-scanner without running ASL.

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
And re-run qmail-scanner-reconfigure (or remove the dot from the create statement in /etc/logrotate.d/clamav manually).

Re: Typo in qmail-scanner-reconfigure (qmail-scanner-2.10-9)

Posted: Sat Feb 02, 2013 2:24 pm
by faris
great catch. Thanks breun.

I'm sure we'll see a fix to both this and the typo error in the next release.

Faris.

Re: Typo in qmail-scanner-reconfigure (qmail-scanner-2.10-9)

Posted: Tue Feb 26, 2013 2:58 pm
by breun
This is fixed in qmail-scanner-2.10-10 which was just released.