mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
* resolv/res_init.c (__res_vinit): Fill in IPv4 name server
information at the correct index.
This commit is contained in:
@ -1,5 +1,8 @@
|
|||||||
2008-12-02 Ulrich Drepper <drepper@redhat.com>
|
2008-12-02 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* resolv/res_init.c (__res_vinit): Fill in IPv4 name server
|
||||||
|
information at the correct index.
|
||||||
|
|
||||||
* socket/sys/socket.h: Declare accept4.
|
* socket/sys/socket.h: Declare accept4.
|
||||||
* socket/accept4.c: New file.
|
* socket/accept4.c: New file.
|
||||||
* sysdeps/unix/sysv/linux/accept4.c: New file.
|
* sysdeps/unix/sysv/linux/accept4.c: New file.
|
||||||
|
4
NEWS
4
NEWS
@ -1,4 +1,4 @@
|
|||||||
GNU C Library NEWS -- history of user-visible changes. 2008-11-17
|
GNU C Library NEWS -- history of user-visible changes. 2008-12-2
|
||||||
Copyright (C) 1992-2007, 2008 Free Software Foundation, Inc.
|
Copyright (C) 1992-2007, 2008 Free Software Foundation, Inc.
|
||||||
See the end for copying conditions.
|
See the end for copying conditions.
|
||||||
|
|
||||||
@ -7,6 +7,8 @@ using `glibc' in the "product" field.
|
|||||||
|
|
||||||
Version 2.10
|
Version 2.10
|
||||||
|
|
||||||
|
* New Linux interface: accept4
|
||||||
|
|
||||||
|
|
||||||
Version 2.9
|
Version 2.9
|
||||||
|
|
||||||
|
@ -314,9 +314,9 @@ __res_vinit(res_state statp, int preinit) {
|
|||||||
cp++;
|
cp++;
|
||||||
if ((*cp != '\0') && (*cp != '\n')
|
if ((*cp != '\0') && (*cp != '\n')
|
||||||
&& __inet_aton(cp, &a)) {
|
&& __inet_aton(cp, &a)) {
|
||||||
statp->nsaddr_list[nserv].sin_addr = a;
|
statp->nsaddr_list[nservall].sin_addr = a;
|
||||||
statp->nsaddr_list[nserv].sin_family = AF_INET;
|
statp->nsaddr_list[nservall].sin_family = AF_INET;
|
||||||
statp->nsaddr_list[nserv].sin_port =
|
statp->nsaddr_list[nservall].sin_port =
|
||||||
htons(NAMESERVER_PORT);
|
htons(NAMESERVER_PORT);
|
||||||
nserv++;
|
nserv++;
|
||||||
#ifdef _LIBC
|
#ifdef _LIBC
|
||||||
|
Reference in New Issue
Block a user