rpms/sendmail/devel sendmail-8.14.4-sasl2-in-etc.patch, NONE, 1.1 sendmail.spec, 1.111, 1.112

Jaroslav Škarvada jskarvad at fedoraproject.org
Fri Jun 11 14:22:33 UTC 2010


Author: jskarvad

Update of /cvs/pkgs/rpms/sendmail/devel
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv8463

Modified Files:
	sendmail.spec 
Added Files:
	sendmail-8.14.4-sasl2-in-etc.patch 
Log Message:
* Fri Jun 11 2010 Jaroslav Škarvada <jskarvad at redhat.com> - 8.14.4-7
- silenced warning about non-existing config in {_libdir}/sasl2


sendmail-8.14.4-sasl2-in-etc.patch:
 usersmtp.c |    9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

--- NEW FILE sendmail-8.14.4-sasl2-in-etc.patch ---
--- sendmail-8.14.4/sendmail/usersmtp.c	2009-06-17 18:26:51.000000000 +0100
+++ sendmail-8.14.4/sendmail/usersmtp.c	2010-06-11 13:13:52.150312505 +0100
@@ -1323,9 +1323,7 @@
 {
 	long sff;
 	int r;
-#if SASL <= 10515
 	size_t len;
-#endif /* SASL <= 10515 */
 	char *p;
 
 	if (file == NULL || *file == '\0')
@@ -1361,9 +1359,16 @@
 #endif /* SASL <= 10515 */
 
 	p = (char *) file;
+	len = strlen(p);
 	if ((r = safefile(p, RunAsUid, RunAsGid, RunAsUserName, sff,
 			  S_IRUSR, NULL)) == 0)
 		return SASL_OK;
+#if SASL > 10515
+	/* Expect /usr/lib/sasl2/Sendmail.conf to be missing - config now in /etc/sasl2 */
+	if (type == SASL_VRFY_CONF && r == ENOENT &&
+            len >= 8 && strncmp(p, "/usr/lib", 8) == 0)
+		return SASL_CONTINUE;
+#endif /* SASL > 10515 */
 	if (LogLevel > (r != ENOENT ? 8 : 10))
 		sm_syslog(LOG_WARNING, NOQID, "error: safesasl(%s) failed: %s",
 			  p, sm_errstring(r));


Index: sendmail.spec
===================================================================
RCS file: /cvs/pkgs/rpms/sendmail/devel/sendmail.spec,v
retrieving revision 1.111
retrieving revision 1.112
diff -u -p -r1.111 -r1.112
--- sendmail.spec	9 Jun 2010 07:32:12 -0000	1.111
+++ sendmail.spec	11 Jun 2010 14:22:33 -0000	1.112
@@ -14,7 +14,7 @@
 Summary: A widely used Mail Transport Agent (MTA)
 Name: sendmail
 Version: 8.14.4
-Release: 6%{?dist}
+Release: 7%{?dist}
 License: Sendmail
 Group: System Environment/Daemons
 URL: http://www.sendmail.org/
@@ -50,6 +50,7 @@ Patch18: sendmail-8.14.4-switchfile.patc
 Patch20: sendmail-8.14.3-milterfdleaks.patch
 Patch21: sendmail-8.14.3-ipv6-bad-helo.patch
 Patch22: sendmail-8.14.4-libdb5.patch
+Patch23: sendmail-8.14.4-sasl2-in-etc.patch
 Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires: tcp_wrappers-devel
 BuildRequires: libdb-devel
@@ -158,6 +159,7 @@ cp devtools/M4/UNIX/{,shared}library.m4
 %patch20 -p1 -b .milterfdleaks
 %patch21 -p1 -b .ipv6-bad-helo
 %patch22 -p1 -b .libdb5
+%patch23 -p1 -b .sasl2-in-etc
 
 for f in RELEASE_NOTES contrib/etrn.0; do
 	iconv -f iso8859-1 -t utf8 -o ${f}{_,} &&
@@ -597,6 +599,9 @@ exit 0
 
 
 %changelog
+* Fri Jun 11 2010 Jaroslav Škarvada <jskarvad at redhat.com> - 8.14.4-7
+- silenced warning about non-existing config in {_libdir}/sasl2
+
 * Tue Jun 08 2010 Jaroslav Škarvada <jskarvad at redhat.com> - 8.14.4-6
 - sasl2 config moved from {_libdir}/sasl2 to {_sysconfdir}/sasl2
 - added libdb5 patch for building with libdb-5



More information about the scm-commits mailing list