Package: amavisd-new
Version: 1:2.6.1.dfsg-1
Severity: important

-- System Information:
Debian Release: 5.0.6
Architecture: amd64
Kernel: 2.6.26-2-amd64

Today I hit a bug in amavisd-new 2.6.1: under certain condidtions,
the warning lines are truncated before the description of the warn:

Oct  8 10:37:56 spamfilter amavis[6343]: (06343-05-10) _WARN:

"Oh damn, something is going wrong but I don't know what and why!"

According to a message sent the amavis-user mailing list on
2008-07-28 with subject "Empty warn:", this is a bug in this
version of amavisd.

The replay reports a patch, but the line numbers don't are the
same (due to debian customizations?), so I attach below the
corrected patch.

For reference, I found the messagges in the Marc Archive
http://marc.info/?l=amavis-user&m=121593365130631&w=2
http://marc.info/?l=amavis-user&m=121725098111422&w=2

In amavisd-new version 2.6.2 the bug was corrected.

The patch:

--- /usr/sbin/amavisd-new-orig  2008-07-26 09:29:09.000000000 +0200
+++ /usr/sbin/amavisd-new       2010-10-08 11:32:04.000000000 +0200
@@ -13002,9 +13002,9 @@

 if ($daemonize) {  # log warnings and uncaught errors
   $SIG{'__DIE__' } =
-    sub { if (!$^S) { my($m) = $@; chomp($m); do_log(-1,"_DIE: %s", $m) } };
+    sub { if (!$^S) { my($m) = @_; chomp($m); do_log(-1,"_DIE: %s", $m) } };
   $SIG{'__WARN__'} =
-    sub { my($m) = $@; chomp($m); do_log( 2,"_WARN: %s",$m) };
+    sub { my($m) = @_; chomp($m); do_log( 2,"_WARN: %s",$m) };
 }

I hope you can provide a new package with the bug removed.

Best regards.

             Paolo Miotto


-------------------------------------------
Paolo Miotto
Centro Servizi Informatici e Telematici
Università di Udine
Via delle scienze, 208
33100 - UDINE

Tel.: +39-0432-558909
Fax.: +39-0432-558911

e-mail: paolo.mio...@uniud.it
-------------------------------------------





----------------------------------------------------------------------
SEMEL (SErvizio di Messaging ELettronico) - CSIT -Universita' di Udine




--
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