]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blame - nss_ldap/patches/nss_ldap-265-erange.patch
Move all packages to root.
[people/arne_f/ipfire-3.x.git] / nss_ldap / patches / nss_ldap-265-erange.patch
CommitLineData
6679571b
MT
1If we were supposed to set ERANGE, do so again, in case do_close() or
2_nss_ldap_leave() overwrote errno with some other value. Upstream #421.
3
4diff -up nss_ldap-265/ldap-nss.ce nss_ldap-265/ldap-nss.c
5--- nss_ldap-265/ldap-nss.ce 2010-07-08 16:17:07.000000000 -0400
6+++ nss_ldap-265/ldap-nss.c 2010-07-08 16:17:03.000000000 -0400
7@@ -3572,6 +3572,10 @@ _nss_ldap_getbyname (ldap_args_t * args,
8
9 debug ("<== _nss_ldap_getbyname");
10
11+ /* at least for the cases where we know we have to return ERANGE */
12+ if (stat == NSS_TRYAGAIN)
13+ do_map_errno(stat, errnop);
14+
15 return stat;
16 }
17