tags 561311 patch
thanks

I moved the redirection to /dev/null which now seems to work as it was
intended to.

--- /root/amavisd-new-cronjob   2010-01-10 03:55:06.000000000 +0100
+++ /usr/sbin/amavisd-new-cronjob       2010-01-10 03:55:25.000000000 +0100
@@ -19,7 +19,7 @@
 # WATCH OUT FOR PROPER QUOTING LEVEL WHEN CALLING THIS!
 do_amavis_cmd() {
        if [ "$(id -u -n)" != "${SUUSER}" ]; then
-               exec /bin/su - "${SUUSER}" -c "$*"
+               exec /bin/su - "${SUUSER}" -c "$*" >/dev/null
        else
                # to get the same quoting level as the su path
                CMD="$*"
@@ -29,10 +29,10 @@

 case $1 in
        sa-sync)
-               do_amavis_cmd "/usr/bin/sa-learn --sync >/dev/null"
+               do_amavis_cmd "/usr/bin/sa-learn --sync"
                ;;
        sa-clean)
-               do_amavis_cmd "/usr/bin/sa-learn --sync --force-expire
>/dev/null"
+               do_amavis_cmd "/usr/bin/sa-learn --sync --force-expire"
                ;;
        *)
                echo "$0: unknown cron routine $1" >&2



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to