diff options
author | Ulrich Drepper <drepper@redhat.com> | 2009-07-01 02:42:59 -0700 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2009-07-01 02:42:59 -0700 |
commit | 29ba9812bb86bf6da9702f4fbff5cdbb25846401 (patch) | |
tree | 80640cc07ed58cf497a77602a28a75b2504c0a17 /ChangeLog | |
parent | e6bd12ddf72412918fe9002a3e27ecc07775bd64 (diff) | |
download | glibc-29ba9812bb86bf6da9702f4fbff5cdbb25846401.tar.gz glibc-29ba9812bb86bf6da9702f4fbff5cdbb25846401.tar.xz glibc-29ba9812bb86bf6da9702f4fbff5cdbb25846401.zip |
Fix getnetbyaddr implementation.
There were two problems in the getnetbyaddr implementation. The type argument is pretty much useless since (almost) no input file contains this information and the NSS backends make up the value they fill in for the n_addrtype field. Therefore we now declare that passing AF_UNSPEC is always recognized. Secondly, the files backend didn't compare the network numbers with the correct endianess. Also change getent to take advantage of the type parameter change.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index 7a25874b73..714d114d5e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2009-07-01 Ulrich Drepper <drepper@redhat.com> + + * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC, + recognize all types. Fix endianess in comparison of network number. + * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX + to getnetbyaddr. + 2009-06-26 H.J. Lu <hongjiu.lu@intel.com> * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define. |