[Pkg-clamav-devel] Bug#778445: Bug#778445: clamav-milter/MilterSocket debconf option ignored during initial install

Andreas Cadhalpun andreas.cadhalpun at googlemail.com
Sun Feb 15 22:31:34 UTC 2015


Control: tags -1 pending

Hi Branko,

On 14.02.2015 15:58, Branko Majic wrote:
>     * What led up to the situation?
>
> Attempt to prepare package configuration via debconf-set-selections prior to package installation.
>
>     * What exactly did you do (or not do) that was effective (or
>       ineffective)?
>
> 1. Set debconf option via command:
>
> echo "clamav-milter	clamav-milter/MilterSocket	string	/var/spool/postfix/var/run/clamav/clamav-milter.ctl" | debconf-set-selections
>
> 2. Install package clamav-milter:
>
> apt-get install clamav-milter
>
> 3. Check the value for option MiletSocket in ClamAV Milter configuration file:
>
> grep MilterSocket /etc/clamav/clamav-milter.conf
>
>     * What was the outcome of this action?
>
> MilterSocket /var/run/clamav/clamav-milter.ctl
> MilterSocketGroup clamav
> MilterSocketMode 666
>
>     * What outcome did you expect instead?
>
> MilterSocket /var/spool/postfix/var/run/clamav/clamav-milter.ctl
> MilterSocketGroup clamav
> MilterSocketMode 666
>
>     * Additional comments
>
> Upon installing the package, I can clearly see via debconf-get-selections that the
> debconf option is still set to the path I set it to via debconf-set-selections.
> The interesting part is that in spite of this when running dpkg-reconfigure
> clamav-milter, and getting to question clamav-milter/MilterSocket, the value listed
> for it is /var/run/clamav/clamav-milter.ctl. Upon changing the value here, I get the
> desired value in the config file. That's why I think the issue happens during
> installation process only.

Thanks for reporting this problem.
It's caused by a variable name mismatch in clamav-milter's postinst 
script, which is now fixed in git [1].

On 15.02.2015 14:55, Branko Majic wrote:
 > It seems that the debconf option clamav-milter/MilterSocketMode is
 > being ignored as well.

Only MilterSocket, User and OnClean are affected, MilterSocketMode works 
correctly:
# echo "clamav-milter clamav-milter/MilterSocketMode string 660" | \
  debconf-set-selections
# apt install clamav-milter
[...]
# cat /etc/clamav/clamav-milter.conf | grep "MilterSocketMode"
MilterSocketMode 660

Best regards,
Andreas

1: 
https://anonscm.debian.org/cgit/pkg-clamav/clamav.git/commit/?id=9ee3aee8155d5d085b4b86ba6227f9908a7f02fb



More information about the Pkg-clamav-devel mailing list