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 168960 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]
rawhide patch...
nss_ldap-netgroups2.patch (text/plain), 1.23 KB, created by
Jose Plans
on 2007-08-23 15:04:21 UTC
(
hide
)
Description:
rawhide patch...
Filename:
MIME Type:
Creator:
Jose Plans
Created:
2007-08-23 15:04:21 UTC
Size:
1.23 KB
patch
obsolete
>--- nss_ldap-254/ldap-nss.c.netgroup 2007-08-17 15:13:53.000000000 +0100 >+++ nss_ldap-254/ldap-nss.c 2007-08-23 13:05:51.000000000 +0100 >@@ -3054,6 +3054,18 @@ _nss_ldap_search_s (const ldap_args_t * > dynamicFilterBuf = NULL; > } > >+ /* If we didn't set any key yet (not yet called LOOKUP_SETENT - setXXent()), >+ * check if we should do it, because if we didn't find any of the results >+ * then there is no point setting a key. -- jmp >+ */ >+ if (sd == NULL && /* No key yet */ >+ (stat == NSS_SUCCESS && /* No transport issues */ >+ ldap_count_entries (__session.ls_conn, *res) == 0)) /* No results found */ >+ { >+ debug ("<== _nss_ldap_search_s"); >+ return NSS_NOTFOUND; >+ } >+ > /* If no entry was returned, try the next search descriptor. */ > if (sd != NULL && sd->lsd_next != NULL) > { >--- nss_ldap-254/ldap-netgrp.c.netgroup 2006-12-18 08:12:56.000000000 +0000 >+++ nss_ldap-254/ldap-netgrp.c 2007-08-23 12:57:44.000000000 +0100 >@@ -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); > } >
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