Package: clamav-base
Version: 0.91.2-1
Severity: normal
Tags: patch

The clamav-base postinstall script uses the variable $DatabaseDirectory instead 
of $DATABASEDIR to copy its 
examples to. The former is only defined when it was already in 
/etc/clamav/clamd.conf, which is certainly not 
always the case.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.20-ruby
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages clamav-base depends on:
ii  adduser                       3.104      add and remove users and groups
ii  debconf [debconf-2.0]         1.5.14     Debian configuration management sy
ii  logrotate                     3.7.1-3    Log rotation utility
ii  ucf                           3.001      Update Configuration File: preserv

Versions of packages clamav-base recommends:
ii  clamav                        0.91.2-1   antivirus scanner for Unix

-- debconf information excluded
--- clamav-base.postinst.in     2007-08-28 14:30:21.000000000 +0200
+++ clamav-base.postinst.in.fixed       2007-08-28 14:33:18.000000000 +0200
@@ -341,13 +341,13 @@
 
   # Update database now
   for db in main daily; do
-    if [ ! -e "$DatabaseDirectory"/"$db".cvd ] && [ ! -d 
"$DatabaseDirectory"/"$db".inc ]; then
+    if [ ! -e "$DATABASEDIR"/"$db".cvd ] && [ ! -d "$DATABASEDIR"/"$db".inc ]; 
then
       cp /usr/share/doc/clamav-base/examples/"$db".cvd \
-        "$DatabaseDirectory"
+        "$DATABASEDIR"
     fi
-    if [ -d "$DatabaseDirectory"/"$db".inc ]; then
-      chmod 0755 "$DatabaseDirectory"/"$db".inc
-      chown "$dbowner" "$DatabaseDirectory"/"$db".inc
+    if [ -d "$DATABASEDIR"/"$db".inc ]; then
+      chmod 0755 "$DATABASEDIR"/"$db".inc
+      chown "$dbowner" "$DATABASEDIR"/"$db".inc
     fi
   done
 

Reply via email to