Package: clamav-daemon
Version: 0.93~dfsg-2
Severity: important
Tags: patch

Hi

init script fails to start clamav-deamon because is_true function does
not properly return error code when not using bash.

This can be fixed by changing

return $([ 'true' = "$lcvar" ] || [ 'yes' = "$lcvar" ] || [ 1 = "$lcvar" ])

to 

[ 'true' = "$lcvar" ] || [ 'yes' = "$lcvar" ] || [ 1 = "$lcvar" ]
return $?

PS: I'm not even sure that original code works with bash, as $() should
be replaced with output of commands inside and [ (test) command does not
have any output.

-- 
        Michal Čihař | http://cihar.com | http://blog.cihar.com

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.22-4-vserver-amd64 (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages clamav-daemon depends on:
ii  clamav-base                  0.93~dfsg-2 anti-virus utility for Unix - base
ii  clamav-freshclam [clamav-dat 0.93~dfsg-2 anti-virus utility for Unix - viru
ii  libc6                        2.7-11      GNU C Library: Shared libraries
ii  libclamav4                   0.93~dfsg-2 anti-virus utility for Unix - libr
ii  lsb-base                     3.2-12      Linux Standard Base 3.2 init scrip
ii  ucf                          3.007       Update Configuration File: preserv

clamav-daemon recommends no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to