Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 299215 Details for
Bug 253997
nss_ldap / setnetgrent() returns always 1 despite not retrieving any valid results.
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
revised candidate patch
nss_ldap-253-netgroups.patch (text/plain), 1.23 KB, created by
Nalin Dahyabhai
on 2008-03-26 19:20:02 UTC
(
hide
)
Description:
revised candidate patch
Filename:
MIME Type:
Creator:
Nalin Dahyabhai
Created:
2008-03-26 19:20:02 UTC
Size:
1.23 KB
patch
obsolete
>In _nss_ldap_search_s(), after we've cycled through how ever many search >descriptors we need to in order to try to find an entry, return NOTFOUND >if we run out of descriptors before we find an entry. > >In setnetgrent(), if _nss_ldap_getbyname returns NOTFOUND, return an >error rather than postponing it to a subsequent call to getnetgrent(). > >Original patch from Jose Plans, modification to handle multiple search >descriptors. > >diff -up nss_ldap/ldap-netgrp.c nss_ldap/ldap-netgrp.c >--- nss_ldap/ldap-netgrp.c 2008-03-26 14:03:59.000000000 -0400 >+++ nss_ldap/ldap-netgrp.c 2008-03-26 14:19:21.000000000 -0400 >@@ -372,6 +372,9 @@ _nss_ldap_setnetgrent (char *group, stru > _nss_ldap_filt_getnetgrent, LM_NETGROUP, > _nss_ldap_load_netgr); > >+ if (stat == NSS_NOTFOUND) >+ return stat; >+ > LOOKUP_SETENT (_ngbe); > } > >diff -up nss_ldap/ldap-nss.c nss_ldap/ldap-nss.c >--- nss_ldap/ldap-nss.c 2008-03-26 14:06:58.000000000 -0400 >+++ nss_ldap/ldap-nss.c 2008-03-26 14:23:00.000000000 -0400 >@@ -3073,6 +3073,10 @@ _nss_ldap_search_s (const ldap_args_t * > } > } > >+ if ((stat == NSS_SUCCESS) && >+ (ldap_count_entries (__session.ls_conn, *res) == 0)) /* No results */ >+ stat = NSS_NOTFOUND; >+ > debug ("<== _nss_ldap_search_s"); > > return stat;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 253997
:
168960
|
168982
| 299215