commit 3148973a1b3bd7fcd393a2ca26652a1ec9d1290a
Author: Nathanael D. Noblet <nathan...@gnat.ca>
Date:   Thu May 23 09:51:27 2013 -0600

    fix recipient corruption

 dspam-recipient-corruption.patch |   30 ++++++++++++++++++++++++++++++
 dspam.spec                       |    8 +++++++-
 2 files changed, 37 insertions(+), 1 deletions(-)
---
diff --git a/dspam-recipient-corruption.patch b/dspam-recipient-corruption.patch
new file mode 100644
index 0000000..2704ab5
--- /dev/null
+++ b/dspam-recipient-corruption.patch
@@ -0,0 +1,30 @@
+commit cbed19764df8ecc1469f739ca33eb92aa3f67584
+Author: Allan Ievers <aimail-dspam_us...@rearden.com>
+Date:   Thu May 10 23:07:30 2012 +0200
+
+    Fix recipient corrpution when releasing a message from quarantine
+    
+    MFM: 1 day
+    Bug-ID: none
+    Bug-Reported-By: Allan Ievers <aimail-dspam_us...@rearden.com>
+    Security: none
+
+diff --git a/src/dspam.c b/src/dspam.c
+index 7afc038..2100c9e 100644
+--- a/src/dspam.c
++++ b/src/dspam.c
+@@ -1,4 +1,4 @@
+-/* $Id: dspam.c,v 1.412 2011/11/10 00:26:00 tomhendr Exp $ */
++/* $Id: dspam.c,v 1.413 2012/05/10 23:03:25 sbajic Exp $ */
+ 
+ /*
+  DSPAM
+@@ -500,7 +500,7 @@ process_message (
+         }
+ 
+         /* Change also the mail recipient */
+-        ATX->recipient = CTX->username;
++        strcpy(ATX->recipient, CTX->username);
+ 
+       }
+     }
diff --git a/dspam.spec b/dspam.spec
index 1fe25c5..e6e90ee 100644
--- a/dspam.spec
+++ b/dspam.spec
@@ -12,7 +12,7 @@
 Summary:                A library and Mail Delivery Agent for Bayesian SPAM 
filtering
 Name:                   dspam
 Version:                3.10.2
-Release:                8%{?dist}
+Release:                9%{?dist}
 License:                GPLv2
 Group:                  System Environment/Daemons
 Source0:                
http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
@@ -27,6 +27,8 @@ Patch1:                 dspam-3.9.0-docs.patch
 Patch2:                 dspam-3.9.0-dspamsock.patch
 Patch3:                 dspam-default-server-port.patch
 Patch4:                 dspam-3.10.2.exim.patch
+Patch5:                 dspam-recipient-corruption.patch
+
 URL:                    http://www.nuclearelephant.com/
 # kept to be able to build EPEL versions
 Buildroot:              %(mktemp -ud 
%{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
@@ -139,6 +141,7 @@ Web-based interface for DSPAM's powerful Anti-Spam engine.
 %patch2 -p0
 %patch3 -p0
 %patch4 -p0
+%patch5 -p1
 
 %build
 
@@ -368,6 +371,9 @@ exit 0
 %config(noreplace) %{_sysconfdir}/httpd/conf.d/dspam-web.conf
 
 %changelog
+* Thu May 23 2013 Nathanael Noblet <nathan...@gnat.ca> - 3.10.2-9
+- Patch for recipient corruption bug
+
 * Wed May 15 2013 Nathanael Noblet <nathan...@gnat.ca> - 3.10.2-8
 - set hardened build to add PIE option since dspam can be long running
 - bug #954345
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/perl-devel

Reply via email to