diff options
author | Florian Weimer <fweimer@redhat.com> | 2019-05-15 13:51:35 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2019-05-15 15:07:49 +0200 |
commit | a9368c34d70cef91ca59b09941f496df11d6b146 (patch) | |
tree | 238aa331f31e567299bcc80b49de7f4f8707a1a3 /nscd/aicache.c | |
parent | d50f09181eca10a91fd9035bb90711b265770dc9 (diff) | |
download | glibc-a9368c34d70cef91ca59b09941f496df11d6b146.zip glibc-a9368c34d70cef91ca59b09941f496df11d6b146.tar.gz glibc-a9368c34d70cef91ca59b09941f496df11d6b146.tar.bz2 |
nss: Turn __nss_database_lookup into a compatibility symbol
The function uses the internal service_user type, so it is not
really usable from the outside of glibc. Rename the function
to __nss_database_lookup2 for internal use, and change
__nss_database_lookup to always indicate failure to the caller.
__nss_next already was a compatibility symbol. The new
implementation always fails and no longer calls __nss_next2.
unscd, the alternative nscd implementation, does not use
__nss_database_lookup, so it is not affected by this change.
Diffstat (limited to 'nscd/aicache.c')
-rw-r--r-- | nscd/aicache.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nscd/aicache.c b/nscd/aicache.c index 5b94e2a..5d8222e 100644 --- a/nscd/aicache.c +++ b/nscd/aicache.c @@ -92,9 +92,9 @@ addhstaiX (struct database_dyn *db, int fd, request_header *req, int herrno = 0; if (hosts_database == NULL) - no_more = __nss_database_lookup ("hosts", NULL, - "dns [!UNAVAIL=return] files", - &hosts_database); + no_more = __nss_database_lookup2 ("hosts", NULL, + "dns [!UNAVAIL=return] files", + &hosts_database); else no_more = 0; nip = hosts_database; |