From 37b14645883b8e48801687df54aaccee54983a03 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Wed, 25 Jun 2014 09:28:12 +0000 Subject: [PATCH] * ldap.cc (cyg_ldap::map_ldaperr_to_errno): Explicitely map LDAP_TIMEOUT to EIO. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/ldap.cc | 2 ++ 2 files changed, 7 insertions(+) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 26978251b..b1e85a7af 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2014-06-25 Corinna Vinschen + + * ldap.cc (cyg_ldap::map_ldaperr_to_errno): Explicitely map LDAP_TIMEOUT + to EIO. + 2014-06-25 Corinna Vinschen * autoload.cc (ldap_search_sW): Replace ldap_search_stW. diff --git a/winsup/cygwin/ldap.cc b/winsup/cygwin/ldap.cc index fa19c307e..3964854bf 100644 --- a/winsup/cygwin/ldap.cc +++ b/winsup/cygwin/ldap.cc @@ -89,6 +89,8 @@ cyg_ldap::map_ldaperr_to_errno (ULONG lerr) is SO wrong, especially considering that LDAP_MORE_RESULTS_TO_RETURN is mapped to ERROR_MORE_DATA as well :-P */ return ENMFILE; + case LDAP_TIMEOUT: + return EIO; default: break; } -- 2.43.5