Description of problem: When getaddrinfo is called with hints.ai_flags |= AI_CANONNAME, and it finds a result from /etc/hosts, the 'canonical name' returned by it must be the value of the first name column in /etc/hosts. e.g. for the /etc/hosts line: "127.0.0.1 www.fubar.redhat www", the canonical name is "www.fubar.redhat". Currently, this is not returned for AF_INET and AF_INET6 on Fedora 20. Version-Release number of selected component (if applicable): glibc-2.18-11.fc20 How reproducible: Always Steps to Reproduce: Run the attached reproducer Actual results: test case reports 'fail' Expected results: test case passes Additional info: The test passes fine on Fedora 18.
Created attachment 844691 [details] A reproducer
glibc-2.18-12.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/glibc-2.18-12.fc20
Package glibc-2.18-12.fc20: * should fix your issue, * was pushed to the Fedora 20 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing glibc-2.18-12.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-1830/glibc-2.18-12.fc20 then log in and leave karma (feedback).
glibc-2.18-12.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.