[nss_ldap] - tweak setnetgrent() so that it also doesn't succeed in conditions when the server's unavailable
Nalin Dahyabhai
nalin at fedoraproject.org
Wed Mar 16 17:26:32 UTC 2011
commit 48f169d30b4f510ab9d896b8a335105caf6e1b78
Author: Nalin Dahyabhai <nalin at dahyabhai.net>
Date: Wed Mar 16 13:26:16 2011 -0400
- tweak setnetgrent() so that it also doesn't succeed in conditions when
the server's unavailable (#664609, upstream #430, i.e., #374 revisited)
nss_ldap-265-setnetgrent.patch | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/nss_ldap-265-setnetgrent.patch b/nss_ldap-265-setnetgrent.patch
new file mode 100644
index 0000000..e17345a
--- /dev/null
+++ b/nss_ldap-265-setnetgrent.patch
@@ -0,0 +1,11 @@
+--- nss_ldap/ldap-netgrp.c
++++ nss_ldap/ldap-netgrp.c
+@@ -372,7 +372,7 @@ _nss_ldap_setnetgrent (char *group, stru
+ _nss_ldap_filt_getnetgrent, LM_NETGROUP,
+ _nss_ldap_load_netgr);
+
+- if (stat == NSS_NOTFOUND)
++ if (stat != NSS_SUCCESS)
+ return stat;
+
+ LOOKUP_SETENT (_ngbe);
More information about the scm-commits
mailing list