]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* nss/nsswitch.c (__nss_lookup): Actually use alternative name in cvs/fedora-glibc-20071227T0908
authorUlrich Drepper <drepper@redhat.com>
Wed, 26 Dec 2007 23:54:44 +0000 (23:54 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 26 Dec 2007 23:54:44 +0000 (23:54 +0000)
second lookup.

ChangeLog
nss/nsswitch.c

index 402b31bc83346f85ad0a9c6f8830b846eeb10427..619f6295310f04c86bb84d4f40592faa0bd09e05 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index 28aa1b4f3470f3db8ac33cd0b51ea5ec805ea40c..c0b661feb3a454c7b713f420626d6b8e0c31874f 100644 (file)
@@ -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
@@ -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;