mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
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.
This commit is contained in:
@ -79,12 +79,12 @@ internal_getgrouplist (const char *user, gid_t group, long int *size,
|
||||
|
||||
if (__nss_initgroups_database == NULL)
|
||||
{
|
||||
if (__nss_database_lookup ("initgroups", NULL, "",
|
||||
&__nss_initgroups_database) < 0)
|
||||
if (__nss_database_lookup2 ("initgroups", NULL, "",
|
||||
&__nss_initgroups_database) < 0)
|
||||
{
|
||||
if (__nss_group_database == NULL)
|
||||
no_more = __nss_database_lookup ("group", NULL, DEFAULT_CONFIG,
|
||||
&__nss_group_database);
|
||||
no_more = __nss_database_lookup2 ("group", NULL, DEFAULT_CONFIG,
|
||||
&__nss_group_database);
|
||||
|
||||
__nss_initgroups_database = __nss_group_database;
|
||||
}
|
||||
|
Reference in New Issue
Block a user