[Pkg-clamav-devel] Bug#741675: clamav-base: Missing quoting and bogus generated config file

Guillem Jover guillem at debian.org
Sat Mar 15 13:56:29 UTC 2014


Package: clamav-base
Version: 0.98.1+dfsg-3
Severity: important

Hi!

The latest update gives this:

,---
Setting up clamav-base (0.98.1+dfsg-3) ...
/var/lib/dpkg/info/clamav-base.postinst: 403: [: 10: unexpected operator
Replacing config file /etc/clamav/clamd.conf with new version
Setting up clamav-freshclam (0.98.1+dfsg-3) ...
/var/lib/dpkg/info/clamav-freshclam.postinst: 353: [: 10: unexpected operator
Disabling old logrotate script for clamav-freshclam
Replacing config file /etc/clamav/freshclam.conf with new version
Starting ClamAV virus database updater: freshclamERROR: Missing argument for option at line 10
ERROR: Can't open/parse the config file /etc/clamav/freshclam.conf
 failed!
`---

The 403 line in clamav-base.postinst is “if [ $ScanOnAccess = "yes" ]; then”
so it would seem to be missing quoting around the variable and the 353 in
clamav-freshclam.postinst is “if [ -n $LogRotate ]; then”, also missing
quoting.

And the issue in the config file, in line 10 there's this:

,---
LogRotate
`---

So it's missing an argument.

Thanks,
Guillem



More information about the Pkg-clamav-devel mailing list