rpms/ssmtp/F-8 ssmtp-authpass.patch,NONE,1.1 ssmtp.spec,1.12,1.13

Manuel Wolfshant wolfy at fedoraproject.org
Wed Nov 26 16:46:43 UTC 2008


Author: wolfy

Update of /cvs/pkgs/rpms/ssmtp/F-8
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv3554

Modified Files:
	ssmtp.spec 
Added Files:
	ssmtp-authpass.patch 
Log Message:
fix to correctly parse AuthPass password


ssmtp-authpass.patch:

--- NEW FILE ssmtp-authpass.patch ---
diff -up ssmtp-2.61/ssmtp.c.orig ssmtp-2.61/ssmtp.c
--- ssmtp-2.61/ssmtp.c.orig	2008-11-26 17:27:29.000000000 +0200
+++ ssmtp-2.61/ssmtp.c	2008-11-26 17:25:36.000000000 +0200
@@ -1051,7 +1051,8 @@ bool_t read_config()
 				}
 			}
 			else if(strcasecmp(p, "AuthPass") == 0 && !auth_pass) {
-				if((auth_pass = strdup(q)) == (char *)NULL) {
+				auth_pass = firsttok(&rightside, " \n\t");
+				if(auth_pass  == (char *)NULL) {
 					die("parse_config() -- strdup() failed");
 				}
 


Index: ssmtp.spec
===================================================================
RCS file: /cvs/pkgs/rpms/ssmtp/F-8/ssmtp.spec,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- ssmtp.spec	12 Sep 2008 19:23:09 -0000	1.12
+++ ssmtp.spec	26 Nov 2008 16:46:12 -0000	1.13
@@ -1,6 +1,6 @@
 Name:		ssmtp
 Version:	2.61
-Release:	11.6%{?dist}.1
+Release:	11.7%{?dist}
 Summary:	Extremely simple MTA to get mail off the system to a Mailhub
 Group:		Applications/Internet
 License:	GPLv2+
@@ -17,11 +17,16 @@
 # replaces RSA's md5 with a GPL compatible implementation
 Patch6:		%{name}-md5auth-non-rsa
 Patch7:		%{name}-unitialized-strdup.patch
+Patch8:		%{name}-authpass.patch
+
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 #hack around wrong requires for mutt and mdadm
 %if 0%{?rhel}
 Provides:	MTA smtpdaemon
 %endif
+%if 0%{?fedora} < 8
+Provides:	MTA smtpdaemon
+%endif
 Provides:	%{_sbindir}/sendmail 
 Requires(post):	%{_sbindir}/alternatives
 Requires(preun):	%{_sbindir}/alternatives
@@ -48,6 +53,7 @@
 %patch5 -p1
 %patch6 -p1
 %patch7 -p1
+%patch8 -p1
 
 
 %build
@@ -121,6 +127,9 @@
 
 
 %changelog
+* Wed Nov 26 2008 Manuel "lonely wolf" Wolfshant <wolfy at nobugconsulting.ro> 2.61-11.7
+- integrate patch from Andreas Dilger, fixes https://bugzilla.redhat.com/show_bug.cgi?id=430608
+
 * Fri Sep 12 2008 Manuel "lonely wolf" Wolfshant <wolfy at nobugconsulting.ro> 2.61-11.6.1
 - use conditionals to consolidate specs for Fedora and EPEL
 




More information about the scm-commits mailing list