Bug 3426 - n debug mode does not pring pyzor command arguments
Summary: n debug mode does not pring pyzor command arguments
Status: RESOLVED FIXED
Alias: None
Product: Spamassassin
Classification: Unclassified
Component: Libraries (show other bugs)
Version: 2.63
Hardware: Other other
: P5 normal
Target Milestone: Future
Assignee: SpamAssassin Developer Mailing List
URL: http://bugs.debian.org/cgi-bin/bugrep...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-24 19:52 UTC by spamassassin
Modified: 2005-04-28 17:55 UTC (History)
0 users



Attachment Type Modified Status Actions Submitter/CLA Status

Note You need to log in before you can comment on or make changes to this bug.
Description spamassassin 2004-05-24 19:52:13 UTC
From: Stepan Koltsov <yozh@banana.mx1.ru>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: spamassassin: in debug mode does not pring pyzor command arguments
Date: Wed, 21 Apr 2004 15:39:32 +0400

Spamassassin invoked as "spamassassin -s -D" does not prinr pyzor
arguments. On my system it prints "raw exit code: 256"
and I cannot understand what happened.

Simple patch:

==========
--- Reporter.pm.orig	2004-04-21 15:31:58.000000000 +0400
+++ Reporter.pm	2004-04-21 15:33:42.000000000 +0400
@@ -318,7 +318,9 @@
       $opts = $1;
     }
 
-    my $pid = open(PYZOR, join(' ', $path, $opts, "report", "< '$tmpf'",
">/dev/null 2>&1", '|')) || die "$!\n";
+    my $command = join(' ', $path, $opts, "report", "< '$tmpf'", ">/dev/null
2>&1", '|');
+    dbg ("Executing Pyzor as $command");
+    my $pid = open(PYZOR, $command) || die "$!\n";
     $self->close_pipe_fh (\*PYZOR);
 
     alarm(0);
==========

[ DF: Sorry for the inline patch. If it wraps, get it from the listed URL ]
Comment 1 Daniel Quinlan 2005-03-30 01:08:20 UTC
move bug to Future milestone (previously set to Future -- I hope)
Comment 2 Daniel Quinlan 2005-04-29 01:55:55 UTC
fixed for 3.1