Re: [Bug 808311] [NEW] ERROR: Invalid setting true for option LogInfected

2011-07-10 Thread Michael Tautschnig
Hi,

> Public bug reported:
> 
>  * Starting Sendmail milter plugin for ClamAV clamav-milter
> ERROR: Invalid setting true for option LogInfected
>   [fail]
> 
> yet:
> 
> # grep LogInfected /etc/clamav/clamav-milter.conf
> LogInfected Off
> 
> the reason is the log is bogus:
> 

I've just reported this to upstream as #3040, see
https://wwws.clamav.net/bugzilla/show_bug.cgi?id=3040.

> 
> and indeed:
> 
> # grep LogClean /etc/clamav/clamav-milter.conf
> LogClean true
> 
> Changing "true" to  "Basic" / "Full" / "Off" make it work.
> 
> So both the confusing log and the wrong default value should be fixed.
>

The wrong value "true" was likely caused by the debconf question missing in
versions before 0.97.1+dfsg-1 (whilst still internally asking debconf for a
value). If you remove this line from the config file or dpkg-reconfigure
clamav-milter you should get an appropriate value in there.

Automatically fixing this problem seems to be a bit risky as we do not want to
override a user's choice/configuration, not even an invalid one.

Hope this helps,
Michael

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to clamav in Ubuntu.
https://bugs.launchpad.net/bugs/808311

Title:
  ERROR: Invalid setting true for option LogInfected

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/clamav/+bug/808311/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 808311] [NEW] ERROR: Invalid setting true for option LogInfected

2011-07-10 Thread Fabien Tassin
Public bug reported:

 * Starting Sendmail milter plugin for ClamAV clamav-milter
ERROR: Invalid setting true for option LogInfected  
[fail]

yet:

# grep LogInfected /etc/clamav/clamav-milter.conf
LogInfected Off

the reason is the log is bogus:

clamav-milter/clamfi.c:

if(!(opt = optget(opts, "LogInfected"))->enabled || 
!strcasecmp(opt->strarg, "Off"))
loginfected = LOGINF_NONE;
else if(!strcasecmp(opt->strarg, "Basic"))
loginfected = LOGINF_BASIC;
else if(!strcasecmp(opt->strarg, "Full"))
loginfected = LOGINF_FULL;
else {
logg("!Invalid setting %s for option LogInfected\n", opt->strarg);
return 1;
}

if((opt = optget(opts, "LogClean"))->enabled) {
if(!strcasecmp(opt->strarg, "Basic"))
loginfected |= LOGCLN_BASIC;
else if(!strcasecmp(opt->strarg, "Full"))
loginfected |= LOGCLN_FULL;
else if(strcasecmp(opt->strarg, "Off")) {
logg("!Invalid setting %s for option LogInfected\n", opt->strarg);  
  <== should be "LogClean"
return 1;
}
}


and indeed:

# grep LogClean /etc/clamav/clamav-milter.conf
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+dfsg-1ubuntu1
ProcVersionSignature: Ubuntu 3.0-3.4-generic 3.0.0-rc5
Uname: Linux 3.0-3-generic x86_64
NonfreeKernelModules: nvidia
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=/usr/bin/tcsh
SourcePackage: clamav
UpgradeStatus: Upgraded to oneiric on 2009-07-28 (712 days ago)

** Affects: clamav (Ubuntu)
 Importance: Undecided
 Status: New


** Tags: amd64 apport-bug oneiric unity-2d

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to clamav in Ubuntu.
https://bugs.launchpad.net/bugs/808311

Title:
  ERROR: Invalid setting true for option LogInfected

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/clamav/+bug/808311/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs