Package: clamav-base Version: 0.91.2-1 Severity: normal (severity normal as this bug just results in doing "nothing" on etch/sid and only affects sarge backports critically)
Found while doing a backport of the latest clamav package to Debian Sarge: In the post-install script of clamav-base (line 446, or line 350 of debian/clamav-base.postinst.in) there is one usage of $dbowner, which is defined nowhere: if [ -d "$DatabaseDirectory"/"$db".inc ]; then chmod 0755 "$DatabaseDirectory"/"$db".inc chown "$dbowner" "$DatabaseDirectory"/"$db".inc fi On Debian Etch/Unstable this chown call is simply ignored, 'chown "" something' just does nothing. But executing the same on Debian Sarge results in an error 'chown: `': cannot omit both user and group', aborting the postinst script. Replacing this $dbowner with $user seems to be what is really wanted. --- clamav-0.91.2/debian/clamav-base.postinst.in.orig 2007-08-23 16:23:18.000000000 +0000 +++ clamav-0.91.2/debian/clamav-base.postinst.in 2007-08-23 16:10:49.000000000 +0000 @@ -347,7 +347,7 @@ fi if [ -d "$DatabaseDirectory"/"$db".inc ]; then chmod 0755 "$DatabaseDirectory"/"$db".inc - chown "$dbowner" "$DatabaseDirectory"/"$db".inc + chown "$user" "$DatabaseDirectory"/"$db".inc fi done -- System Information: Debian Release: lenny/sid APT prefers oldstable APT policy: (500, 'oldstable'), (500, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.20-sdinet10-tokamak (SMP w/2 CPU cores) Locale: LANG=C, LC_CTYPE=de_DE.ISO-8859-1 (charmap=ISO-8859-1) 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-show failed -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]