--- /dev/null
+--- cyrus-sasl-2.1.25/lib/saslutil.c.orig 2011-10-21 13:59:59.354462366 +0200
++++ cyrus-sasl-2.1.25/lib/saslutil.c 2011-10-21 14:10:55.849675881 +0200
+@@ -555,32 +555,44 @@
+ NULL, /* don't care abour service/port */
+ &hints,
+ &result) != 0) {
+- /* errno on Unix, WSASetLastError on Windows are already done by the function */
+- return (-1);
++ if (abort_if_no_fqdn) {
++ /* errno on Unix, WSASetLastError on Windows are already done by the function */
++ return (-1);
++ } else {
++ goto LOWERCASE;
++ }
+ }
+
+- if (abort_if_no_fqdn && (result == NULL || result->ai_canonname == NULL)) {
++ if (result == NULL || result->ai_canonname == NULL) {
+ freeaddrinfo (result);
++ if (abort_if_no_fqdn) {
+ #ifdef WIN32
+- WSASetLastError (WSANO_DATA);
++ WSASetLastError (WSANO_DATA);
+ #elif defined(ENODATA)
+- errno = ENODATA;
++ errno = ENODATA;
+ #elif defined(EADDRNOTAVAIL)
+- errno = EADDRNOTAVAIL;
++ errno = EADDRNOTAVAIL;
+ #endif
+- return (-1);
++ return (-1);
++ } else {
++ goto LOWERCASE;
++ }
+ }
+
+- if (abort_if_no_fqdn && strchr (result->ai_canonname, '.') == NULL) {
++ if (strchr (result->ai_canonname, '.') == NULL) {
+ freeaddrinfo (result);
++ if (abort_if_no_fqdn) {
+ #ifdef WIN32
+- WSASetLastError (WSANO_DATA);
++ WSASetLastError (WSANO_DATA);
+ #elif defined(ENODATA)
+- errno = ENODATA;
++ errno = ENODATA;
+ #elif defined(EADDRNOTAVAIL)
+- errno = EADDRNOTAVAIL;
++ errno = EADDRNOTAVAIL;
+ #endif
+- return (-1);
++ return (-1);
++ } else {
++ goto LOWERCASE;
++ }
+ }
+
+
Summary(uk.UTF-8): Бібліотека Cyrus SASL
Name: cyrus-sasl
Version: 2.1.25
-Release: 4.5
+Release: 4.9
License: distributable
Group: Libraries
Source0: ftp://ftp.cyrusimap.org/cyrus-sasl/%{name}-%{version}.tar.gz
Patch18: 0033-fix_segfault_in_GSSAPI.patch
Patch19: 0034-fix_dovecot_authentication.patch
Patch20: %{name}-auxprop.patch
+Patch21: %{name}-get_fqhostname.patch
URL: http://asg.web.cmu.edu/sasl/
BuildRequires: autoconf >= 2.54
BuildRequires: automake >= 1:1.7
%patch18 -p1
%patch19 -p1
%patch20 -p1
+%patch21 -p1
cd doc
echo "cyrus-sasl complies with the following RFCs:" > rfc-compliance