[dspam/el6] Fix recipient corruption

Nathanael Noblet gnat at fedoraproject.org
Thu May 23 16:01:54 UTC 2013


commit 73fd10d3d9d9ca30d653d343dd2c9f2fd0460abe
Author: Nathanael D. Noblet <nathanael at gnat.ca>
Date:   Thu May 23 09:58:35 2013 -0600

    Fix recipient corruption

 dspam-recipient-corruption.patch |   30 ++++++++++++++++++++++++++++++
 dspam.spec                       |    7 ++++++-
 2 files changed, 36 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_users at 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_users at 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 a4e2e23..538a891 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:                3%{?dist}
+Release:                4%{?dist}
 License:                GPLv2
 Group:                  System Environment/Daemons
 Source0:                http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
@@ -26,6 +26,7 @@ Source7:				dspam-tmpfiles
 Source99:               dspam-filter-requires.sh
 Patch1:                 dspam-3.9.0-docs.patch
 Patch2:                 dspam-3.9.0-dspamsock.patch
+Patch3:                 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)
@@ -138,6 +139,7 @@ Web-based interface for DSPAM's powerful Anti-Spam engine.
 %setup -q
 %patch1 -p0
 %patch2 -p0
+%patch3 -p1
 
 %build
 
@@ -377,6 +379,9 @@ exit 0
 %config(noreplace) %{_sysconfdir}/httpd/conf.d/dspam-web.conf
 
 %changelog
+* Thu May 23 2013 Nathanael Noblet <nathanael at gnat.ca> - 3.10.2-4
+- Fix recipient corruption bug
+
 * Wed May 15 2013 Nathanael Noblet <nathanael at gnat.ca> - 3.10.2-3
 - set hardened build to add PIE option since dspam can be long running bug #954345
 - properly fixes #657357 - PostgreSQL purge script works


More information about the scm-commits mailing list