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

General Discussion of atomic repo and development projects.

Ask for help here with anything else not covered by other forums.
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

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

Unread post 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).
Lemonbit Internet Dedicated Server Management
faris
Long Time Forum Regular
Long Time Forum Regular
Posts: 2321
Joined: Thu Dec 09, 2004 11:19 am

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

Unread post 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.
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

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

Unread post by breun »

This is fixed in qmail-scanner-2.10-10 which was just released.
Lemonbit Internet Dedicated Server Management
Post Reply