summaryrefslogtreecommitdiff
path: root/nss
diff options
context:
space:
mode:
Diffstat (limited to 'nss')
-rw-r--r--nss/XXX-lookup.c5
-rw-r--r--nss/nsswitch.c2
2 files changed, 5 insertions, 2 deletions
diff --git a/nss/XXX-lookup.c b/nss/XXX-lookup.c
index cfb89a2702..900bc307b9 100644
--- a/nss/XXX-lookup.c
+++ b/nss/XXX-lookup.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
@@ -27,6 +27,9 @@
|* *|
|* One additional symbol may optionally be defined: *|
|* *|
+|* ALTERNATE_NAME - name of another service which is examined in *|
+|* case DATABASE_NAME is not found *|
+|* *|
|* DEFAULT_CONFIG - string for default conf (e.g. "dns files") *|
|* *|
\*******************************************************************/
diff --git a/nss/nsswitch.c b/nss/nsswitch.c
index 77fc4f0916..9c7a2d7909 100644
--- a/nss/nsswitch.c
+++ b/nss/nsswitch.c
@@ -201,7 +201,7 @@ __nss_configure_lookup (const char *dbname, const char *service_line)
int cmp = strcmp (dbname, databases[cnt].name);
if (cmp == 0)
break;
- if (cmp > 0)
+ if (cmp < 0)
{
__set_errno (EINVAL);
return -1;