public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/12923] New: Comments in /etc/resolv.conf starting in the middle of a line are interpreted
@ 2011-06-23 12:41 markus.gagliardi at paytec dot ch
  2011-06-23 12:41 ` [Bug libc/12923] " markus.gagliardi at paytec dot ch
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: markus.gagliardi at paytec dot ch @ 2011-06-23 12:41 UTC (permalink / raw)
  To: glibc-bugs

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

           Summary: Comments in /etc/resolv.conf starting in the middle of
                    a line are interpreted
           Product: glibc
           Version: 2.14
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper.fsp@gmail.com
        ReportedBy: markus.gagliardi@paytec.ch


Example:

With the following line in /etc/resolv.conf, libc tries to resolv
myhost.somedomain.ch.by if the DNS server is not available during the try on
myhost.somedomain.ch. It even succeeds, since ch.by resolves everything with
this suffix..

search somedomain.ch # Generated by udhcpc eth0

Best regards
Markus

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug libc/12923] Comments in /etc/resolv.conf starting in the middle of a line are interpreted
  2011-06-23 12:41 [Bug libc/12923] New: Comments in /etc/resolv.conf starting in the middle of a line are interpreted markus.gagliardi at paytec dot ch
@ 2011-06-23 12:41 ` markus.gagliardi at paytec dot ch
  2011-07-03 12:28 ` aj at suse dot de
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: markus.gagliardi at paytec dot ch @ 2011-06-23 12:41 UTC (permalink / raw)
  To: glibc-bugs

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

--- Comment #1 from Markus Gagliardi <markus.gagliardi at paytec dot ch> 2011-06-23 12:41:43 UTC ---
Problem is in res_init.c (247 ff.):

        while (fgets_unlocked(buf, sizeof(buf), fp) != NULL) {
        /* skip comments */
        if (*buf == ';' || *buf == '#')
            continue;

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug libc/12923] Comments in /etc/resolv.conf starting in the middle of a line are interpreted
  2011-06-23 12:41 [Bug libc/12923] New: Comments in /etc/resolv.conf starting in the middle of a line are interpreted markus.gagliardi at paytec dot ch
  2011-06-23 12:41 ` [Bug libc/12923] " markus.gagliardi at paytec dot ch
@ 2011-07-03 12:28 ` aj at suse dot de
  2011-07-03 13:19 ` drepper.fsp at gmail dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: aj at suse dot de @ 2011-07-03 12:28 UTC (permalink / raw)
  To: glibc-bugs

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

Andreas Jaeger <aj at suse dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |aj at suse dot de

--- Comment #2 from Andreas Jaeger <aj at suse dot de> 2011-07-03 12:27:53 UTC ---
/etc/resolv.conf only allows complete comment lines but not mixing of options
and comments.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug libc/12923] Comments in /etc/resolv.conf starting in the middle of a line are interpreted
  2011-06-23 12:41 [Bug libc/12923] New: Comments in /etc/resolv.conf starting in the middle of a line are interpreted markus.gagliardi at paytec dot ch
  2011-06-23 12:41 ` [Bug libc/12923] " markus.gagliardi at paytec dot ch
  2011-07-03 12:28 ` aj at suse dot de
@ 2011-07-03 13:19 ` drepper.fsp at gmail dot com
  2011-07-04  6:19 ` markus.gagliardi at paytec dot ch
  2014-06-27 13:05 ` fweimer at redhat dot com
  4 siblings, 0 replies; 6+ messages in thread
From: drepper.fsp at gmail dot com @ 2011-07-03 13:19 UTC (permalink / raw)
  To: glibc-bugs

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

Ulrich Drepper <drepper.fsp at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #3 from Ulrich Drepper <drepper.fsp at gmail dot com> 2011-07-03 13:18:32 UTC ---
Fix the program which generates these incorrect lines.

Even if I'd change that this would still create problems elsewhere because ever
since the firs appearance of this code comments aren't supported like this.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug libc/12923] Comments in /etc/resolv.conf starting in the middle of a line are interpreted
  2011-06-23 12:41 [Bug libc/12923] New: Comments in /etc/resolv.conf starting in the middle of a line are interpreted markus.gagliardi at paytec dot ch
                   ` (2 preceding siblings ...)
  2011-07-03 13:19 ` drepper.fsp at gmail dot com
@ 2011-07-04  6:19 ` markus.gagliardi at paytec dot ch
  2014-06-27 13:05 ` fweimer at redhat dot com
  4 siblings, 0 replies; 6+ messages in thread
From: markus.gagliardi at paytec dot ch @ 2011-07-04  6:19 UTC (permalink / raw)
  To: glibc-bugs

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

--- Comment #4 from Markus Gagliardi <markus.gagliardi at paytec dot ch> 2011-07-04 06:19:06 UTC ---
(In reply to comment #3)
> Fix the program which generates these incorrect lines.
> 
> Even if I'd change that this would still create problems elsewhere because ever
> since the firs appearance of this code comments aren't supported like this.

No problem.

I was just confused by an OpenBSD manpage
http://resin.csoft.net/cgi-bin/man.cgi?section=5&topic=resolv.conf
where comments beginning in the middle of a line are allowed.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug libc/12923] Comments in /etc/resolv.conf starting in the middle of a line are interpreted
  2011-06-23 12:41 [Bug libc/12923] New: Comments in /etc/resolv.conf starting in the middle of a line are interpreted markus.gagliardi at paytec dot ch
                   ` (3 preceding siblings ...)
  2011-07-04  6:19 ` markus.gagliardi at paytec dot ch
@ 2014-06-27 13:05 ` fweimer at redhat dot com
  4 siblings, 0 replies; 6+ messages in thread
From: fweimer at redhat dot com @ 2014-06-27 13:05 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=12923

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |security-

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-06-27 13:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-23 12:41 [Bug libc/12923] New: Comments in /etc/resolv.conf starting in the middle of a line are interpreted markus.gagliardi at paytec dot ch
2011-06-23 12:41 ` [Bug libc/12923] " markus.gagliardi at paytec dot ch
2011-07-03 12:28 ` aj at suse dot de
2011-07-03 13:19 ` drepper.fsp at gmail dot com
2011-07-04  6:19 ` markus.gagliardi at paytec dot ch
2014-06-27 13:05 ` fweimer at redhat 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).