Package: dash
Version: 0.5.5.1-7.3
Severity: normal


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

Kernel: Linux 2.6.32-bpo.5-686 (SMP w/1 CPU core)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash

Versions of packages dash depends on:
ii  debianutils                   3.4        Miscellaneous utilities specific t
ii  dpkg                          1.15.8.5   Debian package management system
ii  libc6                         2.11.2-7   Embedded GNU C Library: Shared lib

dash recommends no packages.

dash suggests no packages.

-- debconf information:
* dash/sh: true

In /usr/sbin/amavisd-new-cronjob:

do_amavis_cmd() {
   if [ "$(id -u -n)" != "${SUUSER}" ]; then
      exec /bin/su -s /bin/sh - "${SUUSER}" -c "$*" >/dev/null
   else
      # to get the same quoting level as the su path
      CMD="$*"
      exec ${CMD} >/dev/null
   fi
}

does not work. Change it to:

do_amavis_cmd() {
   if [ "$(id -u -n)" != "${SUUSER}" ]; then
      exec /bin/su -s /bin/bash - "${SUUSER}" -c "$*" >/dev/null
   else
      # to get the same quoting level as the su path
      CMD="$*"
      exec ${CMD} >/dev/null
   fi
}

and it works again. 

This script is called /etc/cron.daily/amavisd-/usr/sbin/amavisd-new: 
/usr/sbin/amavisd-new-cronjob sa-clean

This problem can also be seen as an amavisd-new problem.



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

Reply via email to