mirror of git://sourceware.org/git/glibc.git
Update.
* nss/getent.c (ahosts_keys): ai_canonname is NULL for all but the first returned entry. Print name only if not NULL.
This commit is contained in:
parent
8500b0caba
commit
5c81b3e1b7
|
@ -1,5 +1,8 @@
|
||||||
2004-08-13 Ulrich Drepper <drepper@redhat.com>
|
2004-08-13 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* nss/getent.c (ahosts_keys): ai_canonname is NULL for all but the
|
||||||
|
first returned entry. Print name only if not NULL.
|
||||||
|
|
||||||
* nis/nss_nis/nis-netgrp.c: Remove locking by using data in struct
|
* nis/nss_nis/nis-netgrp.c: Remove locking by using data in struct
|
||||||
__netgrent object passed in instead of global variables.
|
__netgrent object passed in instead of global variables.
|
||||||
Optimize.
|
Optimize.
|
||||||
|
|
|
@ -348,7 +348,7 @@ ahosts_keys (int number, char *key[])
|
||||||
&((struct sockaddr_in *) runp->ai_addr)->sin_addr,
|
&((struct sockaddr_in *) runp->ai_addr)->sin_addr,
|
||||||
buf, sizeof (buf)),
|
buf, sizeof (buf)),
|
||||||
sockstr,
|
sockstr,
|
||||||
runp->ai_canonname);
|
runp->ai_canonname ?: "");
|
||||||
|
|
||||||
runp = runp->ai_next;
|
runp = runp->ai_next;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue