Skip to content

Commit

Permalink
* nss/nsswitch.c (__nss_lookup): Actually use alternative name in
Browse files Browse the repository at this point in the history
	second lookup.
  • Loading branch information
Ulrich Drepper committed Dec 26, 2007
1 parent 80af8b8 commit 0dc6c5e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2007-12-26 Ulrich Drepper <drepper@redhat.com>

* nss/nsswitch.c (__nss_lookup): Actually use alternative name in
second lookup.

2007-12-23 Ulrich Drepper <drepper@redhat.com>

* sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
Expand Down
4 changes: 2 additions & 2 deletions nss/nsswitch.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ __nss_lookup (service_user **ni, const char *fct_name, const char *fct2_name,
{
*fctp = __nss_lookup_function (*ni, fct_name);
if (*fctp == NULL && fct2_name != NULL)
*fctp = __nss_lookup_function (*ni, fct_name);
*fctp = __nss_lookup_function (*ni, fct2_name);

while (*fctp == NULL
&& nss_next_action (*ni, NSS_STATUS_UNAVAIL) == NSS_ACTION_CONTINUE
Expand All @@ -160,7 +160,7 @@ __nss_lookup (service_user **ni, const char *fct_name, const char *fct2_name,

*fctp = __nss_lookup_function (*ni, fct_name);
if (*fctp == NULL && fct2_name != NULL)
*fctp = __nss_lookup_function (*ni, fct_name);
*fctp = __nss_lookup_function (*ni, fct2_name);
}

return *fctp != NULL ? 0 : (*ni)->next == NULL ? 1 : -1;
Expand Down

0 comments on commit 0dc6c5e

Please sign in to comment.