ERROR: Invalid setting true for option LogInfected
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ClamAV |
Fix Released
|
Medium
|
|||
clamav (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
* Starting Sendmail milter plugin for ClamAV clamav-milter
ERROR: Invalid setting true for option LogInfected [fail]
yet:
# grep LogInfected /etc/clamav/
LogInfected Off
the reason is the log is bogus:
clamav-
====
if(!(opt = optget(opts, "LogInfected"
loginfected = LOGINF_NONE;
else if(!strcasecmp(
loginfected = LOGINF_BASIC;
else if(!strcasecmp(
loginfected = LOGINF_FULL;
else {
return 1;
}
if((opt = optget(opts, "LogClean"
else if(!strcasecmp(
else if(strcasecmp(
return 1;
}
}
====
and indeed:
# grep LogClean /etc/clamav/
LogClean true
Changing "true" to "Basic" / "Full" / "Off" make it work.
So both the confusing log and the wrong default value should be fixed.
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: clamav 0.97.1+
ProcVersionSign
Uname: Linux 3.0-3-generic x86_64
NonfreeKernelMo
Architecture: amd64
Date: Sun Jul 10 12:41:09 2011
ProcEnviron:
LANGUAGE=en_US:en
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=
SourcePackage: clamav
UpgradeStatus: Upgraded to oneiric on 2009-07-28 (712 days ago)
Changed in clamav (Ubuntu): | |
importance: | Undecided → Low |
Changed in clamav: | |
importance: | Unknown → Medium |
status: | Unknown → Fix Released |
Hi,
As just reported on Ubuntu's launchpad [1], the error message shown when an invalid config value is found for LogClean is bogus. Please see [1] for details, but basically it just boils down to replacing "LogInfected" by "LogClean" in line 560 of clamav- milter/ clamfi. c.
Best,
Michael
[1] https:/ /bugs.launchpad .net/ubuntu/ +source/ clamav/ +bug/808311