]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - nss_ldap/patches/nss_ldap-264-cloexec.patch
Move all packages to root.
[people/ms/ipfire-3.x.git] / nss_ldap / patches / nss_ldap-264-cloexec.patch
1 diff -up nss_ldap-264/ldap-nss.c nss_ldap-264/ldap-nss.c
2 --- nss_ldap-264/ldap-nss.c 2009-07-23 18:55:15.290388484 -0400
3 +++ nss_ldap-264/ldap-nss.c 2009-07-23 19:01:33.328398737 -0400
4 @@ -896,6 +896,7 @@ do_drop_connection(int sd, int closeSd)
5 /* we must let dup2 close sd for us to avoid race conditions
6 * in multithreaded code.
7 */
8 + fcntl (dummyfd, F_SETFD, 1L);
9 do_dupfd (dummyfd, sd);
10 do_closefd (dummyfd);
11 }