public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/4980] New: gethostbyname() etc break for /etc/hosts with both ::1 and 127.0.0.1 localhost entries
@ 2007-08-29 17:04 pasky at suse dot cz
  2007-08-29 17:32 ` [Bug libc/4980] " drepper at redhat dot com
                   ` (59 more replies)
  0 siblings, 60 replies; 75+ messages in thread
From: pasky at suse dot cz @ 2007-08-29 17:04 UTC (permalink / raw)
  To: glibc-bugs

On Nov 20 a change in nss/nss_files/files-hosts.c:LINE_PARSER was
introduced to treat ::1 the same way as 127.0.0.1. A lot of Linux systems have

        127.0.0.1       localhost
        ::1             localhost

in their /etc/hosts (though most have ip6-localhost for ::1 instead).

The new behavior appears not to be mandated by any standard nor does it seem as
a particularily useful change.

The trouble is that now gethostbyname() (gethostbyname2(), getaddrinfo(), ...)
will return duplicate 127.0.0.1 records in h_addr_list[] and some applications
do not explect duplicate entries in this array (e.g. OpenLDAP). The new
behaviour does not seem to gain anything so the old behavior should be restored.

-- 
           Summary: gethostbyname() etc break for /etc/hosts with both ::1
                    and 127.0.0.1 localhost entries
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: pasky at suse dot cz
                CC: glibc-bugs at sources dot redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=4980

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 75+ messages in thread
[parent not found: <bug-4980-131@http.sourceware.org/bugzilla/>]

end of thread, other threads:[~2023-10-28 17:09 UTC | newest]

Thread overview: 75+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-29 17:04 [Bug libc/4980] New: gethostbyname() etc break for /etc/hosts with both ::1 and 127.0.0.1 localhost entries pasky at suse dot cz
2007-08-29 17:32 ` [Bug libc/4980] " drepper at redhat dot com
2007-09-05  0:57 ` pasky at suse dot cz
2007-09-23 16:07 ` drepper at redhat dot com
2007-09-23 20:59 ` pasky at suse dot cz
2007-09-23 22:42 ` drepper at redhat dot com
2007-09-24  0:33 ` pasky at suse dot cz
2007-09-24  3:04 ` drepper at redhat dot com
2007-12-01 20:10 ` hyc at symas dot com
2007-12-14  3:31 ` hyc at symas dot com
2007-12-14  3:53 ` drepper at redhat dot com
2008-04-09 19:13 ` vapier at gentoo dot org
2008-04-09 19:53 ` halcy0n at gentoo dot org
2008-04-10  9:37 ` sylvain dot bertrand at gmail dot com
2008-04-15  6:14 ` tpeland at tkukoulu dot fi
2008-04-15  6:20 ` tpeland at tkukoulu dot fi
2008-04-15 14:21 ` drepper at redhat dot com
2008-06-18 19:26 ` hyc at symas dot com
2008-07-07  5:06 ` dave dot houston at gmail dot com
2008-07-07  5:57 ` drepper at redhat dot com
2008-07-07 20:30 ` tg at mirbsd dot de
2008-07-07 20:41 ` tonnerre at NetBSD dot org
2008-07-07 20:59 ` carterhawk at gmail dot com
2008-07-07 22:07 ` chris dot f dot ravenscroft at alcatel-lucent dot com
2008-07-07 23:20 ` phelix_dacat at yahoo dot com
2008-07-08  0:43 ` drepper at redhat dot com
2008-07-08  1:31 ` mangmang at thisisnotmyrealemail dot com
2008-07-08  2:02 ` mokomull at gmail dot com
2008-07-08  2:04 ` mokomull at gmail dot com
2008-07-08  3:29 ` drepper at redhat dot com
2008-07-08  4:48 ` junyer at gmail dot com
2008-07-08  5:09 ` drepper at redhat dot com
2008-07-08  6:00 ` robotdevice at gmail dot com
2008-07-08  6:03 ` robotdevice at gmail dot com
2008-07-08  6:29 ` tonnerre at NetBSD dot org
2008-07-08  7:08 ` mantari dot damacy at gmail dot com
2008-07-08  7:41 ` tonnerre at NetBSD dot org
2008-07-08 17:02 ` grfgguvf at gmail dot com
2008-07-08 18:08 ` M8R-ycntwi at sogetthis dot com
2008-07-08 18:28 ` drepper at redhat dot com
2008-07-08 18:51 ` doot at mailinator dot com
2008-07-08 18:54 ` drepper at redhat dot com
2008-07-08 19:11 ` regis dot philbin at hush dot ai
2008-07-08 19:22 ` M8R-1weoa31 at mailinator dot com
2008-07-08 19:23 ` sourceware at trashymail dot com
2008-07-08 19:38 ` pasky at suse dot cz
2008-07-08 22:27 ` grfgguvf at gmail dot com
2009-05-07  1:03 ` zugok8 at gmail dot com
2009-05-07  1:46 ` vapier at gentoo dot org
2009-05-07  5:59 ` ufarkhead at yahoo dot com
2009-05-07  9:10 ` pasky at suse dot cz
2009-05-09 19:44 ` whtt at mailinator dot com
2009-05-15  1:15 ` dedesantana at mailinator dot com
2009-05-15  1:18 ` pasky at suse dot cz
2009-05-15 22:36 ` inuyasha dot exe at gmail dot com
2009-05-16  5:45 ` pasky at suse dot cz
2009-07-25  1:18 ` b501512 at tyldd dot com
2009-08-20 11:48 ` pasky at suse dot cz
2009-08-20 14:11 ` grfgguvf at gmail dot com
2010-01-21 12:57 ` nat dot 4200 at gmail dot com
2010-04-23  2:09 ` samjnaa at gmail dot com
     [not found] <bug-4980-131@http.sourceware.org/bugzilla/>
2012-02-15 20:49 ` aurelien at aurel32 dot net
2012-02-15 21:02 ` aurelien at aurel32 dot net
2012-03-31 21:06 ` slashtrooll at misc dot lka.org.lu
2012-04-01  4:12 ` vapier at gentoo dot org
2014-02-03  1:14 ` alexa.gerancho at hushmail dot com
2015-05-17 17:55 ` netjoker45 at gmail dot com
2015-05-17 17:56 ` netjoker45 at gmail dot com
2015-05-17 17:58 ` netjoker45 at gmail dot com
2015-05-17 17:59 ` netjoker45 at gmail dot com
2015-05-17 18:00 ` netjoker45 at gmail dot com
2015-05-18  2:11 ` vapier at gentoo dot org
2015-05-18  2:12 ` vapier at gentoo dot org
2021-09-15  2:26 ` namboru at jasaseo dot one
2023-10-28 17:09 ` gabravier at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).