Package: spamassassin
Version: 3.2.5-4
Severity: normal
Tags: patch

The expression for calculation the sleep time in
/etc/cron.daily/spamassassin ($number "%" $RANGE) may be 0, in which
case sleep fails with an error code of one, and since the script is run
with set -e it will exit and not run the update. This can easily be
fixed for instance by adding 1 to the result.

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (200, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.30-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=nb_NO.UTF-8, LC_CTYPE=nb_NO.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages spamassassin depends on:
pn  libarchive-tar-perl           <none>     (no description available)
ii  libdigest-sha1-perl           2.12-1     NIST SHA-1 message digest algorith
ii  libhtml-parser-perl           3.61-1     collection of modules that parse H
ii  libnet-dns-perl               0.65-1     Perform DNS queries from a Perl sc
ii  libsocket6-perl               0.20-1     Perl extensions for IPv6
ii  libsys-hostname-long-perl     1.4-2      Figure out the long (fully-qualifi
ii  libwww-perl                   5.829-1    WWW client/server library for Perl
ii  perl                          5.10.0-24  Larry Wall's Practical Extraction 
ii  perl-modules [libio-zlib-perl 5.10.0-24  Core Perl modules

Versions of packages spamassassin recommends:
ii  gcc                           4:4.3.3-9  The GNU C compiler
ii  gnupg                         1.4.9-4    GNU privacy guard - a free PGP rep
ii  libc6-dev                     2.9-12     GNU C Library: Development Librari
ii  libio-socket-inet6-perl       2.54-1.1   Object interface for AF_INET6 doma
ii  libmail-spf-perl              2.005-1    Perl implementation of Sender Poli
ii  libsys-syslog-perl            0.27-1     Perl interface to the UNIX syslog(
ii  make                          3.81-6     An utility for Directing compilati
ii  perl [libsys-syslog-perl]     5.10.0-24  Larry Wall's Practical Extraction 
ii  re2c                          0.13.5-1   tool for generating fast C-based r
ii  spamc                         3.2.5-4    Client for SpamAssassin spam filte

Versions of packages spamassassin suggests:
ii  libcompress-zlib-p 2.015-1               Perl module for creation and manip
ii  libdbi-perl        1.609-1               Perl Database Interface (DBI)
ii  libio-socket-ssl-p 1.26-1                Perl module implementing object or
pn  libmail-dkim-perl  <none>                (no description available)
pn  libnet-ident-perl  <none>                (no description available)
ii  perl [libcompress- 5.10.0-24             Larry Wall's Practical Extraction 
ii  pyzor              1:0.4.0+cvs20030201-8 spam-catcher using a collaborative
ii  razor              1:2.85-3              spam-catcher using a collaborative

-- no debconf information
--- /etc/cron.daily/spamassassin.orig   2009-08-17 08:12:47.000000000 +0200
+++ /etc/cron.daily/spamassassin        2009-08-17 08:12:59.000000000 +0200
@@ -23,7 +23,7 @@
 # Taken from apticron's cron.daily
 RANGE=3
 number=`od -vAn -N2 -tu4 < /dev/urandom`
-number=`expr $number "%" $RANGE`
+number=`expr $number "%" $RANGE + 1`
 sleep $number
 
 # Update

Reply via email to