[dspam/el5] fix recipient corruption

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit d1b150721864a95dca3750e37874320c3a925763
Author: Nathanael D. Noblet <nathanael@xxxxxxx>
Date:   Thu May 23 10:00:52 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@xxxxxxxxxxx>
+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@xxxxxxxxxxx>
+    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 37aeffb..7e83edf 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@xxxxxxx> - 3.10.2-4
+- Fix recipient corruption bug
+
 * Wed May 15 2013 Nathanael Noblet <nathanael@xxxxxxx> - 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
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel





[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux