1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-09-16 23:02:13 +03:00
1999-08-03  Ulrich Drepper  <drepper@cygnus.com>

	* inet/ether_hton.c: Pass errno pointer to NSS function.
	* inet/getnetgrent_r.c: Likewise.
	Reported by Marty Leisner <leisner@rochester.rr.com>.
This commit is contained in:
Ulrich Drepper
1999-08-04 00:09:53 +00:00
parent d6f6ffa166
commit 630b9a59e1
3 changed files with 8 additions and 2 deletions

View File

@@ -73,7 +73,7 @@ ether_hostton (const char *hostname, struct ether_addr *addr)
{
char buffer[1024];
status = (*fct) (hostname, &etherent, buffer, sizeof buffer);
status = (*fct) (hostname, &etherent, buffer, sizeof buffer, &errno);
no_more = __nss_next (&nip, "gethostton_r", (void **) &fct, status, 0);
}

View File

@@ -207,7 +207,7 @@ __internal_getnetgrent_r (char **hostp, char **userp, char **domainp,
no_more = setup ((void **) &fct, "getnetgrent_r", 0);
while (! no_more)
{
status = (*fct) (datap, buffer, buflen);
status = (*fct) (datap, buffer, buflen, &errno);
if (status == NSS_STATUS_RETURN)
{