Summary: | getaddrinfo() doesn't resolve IPv4 localhost, when an unrelated IPv4 long line is present in the /etc/hosts | ||
---|---|---|---|
Product: | glibc | Reporter: | pavel.devecka |
Component: | network | Assignee: | Florian Weimer <fweimer> |
Status: | RESOLVED DUPLICATE | ||
Severity: | minor | CC: | fweimer |
Priority: | P2 | Flags: | fweimer:
security-
|
Version: | 2.22 | ||
Target Milestone: | --- | ||
See Also: | https://sourceware.org/bugzilla/show_bug.cgi?id=18991 | ||
Host: | Target: | ||
Build: | Last reconfirmed: | 2020-01-29 00:00:00 |
Description
pavel.devecka
2020-01-29 15:47:10 UTC
I believe this is bug 18991. This was fixed in glibc 2.28. Can you test that glibc version (or the current master version) to see if this fixes the bug as well? Due to inability to test later glibc version in a prod environment I did below testing only. (getent ahostsv4 localhost) OS version glibc version Issue observed Note ================================================================================= openSUSE Leap 15.1 2.26-lp151.18.7 No live CD Ubuntu 18.04.4 LTS 2.27-3ubuntu1 No installed desktop Ubuntu 19.10 2.30-0ubuntu2 No live CD |