mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-24 14:00:30 +00:00
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>
|
||||
|
||||
* 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
|
||||
__netgrent object passed in instead of global variables.
|
||||
Optimize.
|
||||
|
@ -348,7 +348,7 @@ ahosts_keys (int number, char *key[])
|
||||
&((struct sockaddr_in *) runp->ai_addr)->sin_addr,
|
||||
buf, sizeof (buf)),
|
||||
sockstr,
|
||||
runp->ai_canonname);
|
||||
runp->ai_canonname ?: "");
|
||||
|
||||
runp = runp->ai_next;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user