Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Mar 2015 03:38:45 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 198648] resolvconf does not modify pdnsd.conf correctly
Message-ID:  <bug-198648-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198648

            Bug ID: 198648
           Summary: resolvconf does not modify pdnsd.conf correctly
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: conf
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: henry.hu.sh@gmail.com

Currently, when setting pdnsd_conf in resolvconf.conf, resolvconf does not
change pdnsd.conf correctly. The result looks like this:

...
# Generated by resolvconf
server {\n\tlabel=resolvconf;\n\tip=192.168.1.1;\n}\nserver
{\n\tinclude=.lan.;\n\tpolicy=excluded;\n\tip=192.168.1.1;\n}\n# End of
resolvconf

In other words, newline should be inserted, but "\n" was inserted instead.
pdnsd refuses to start with this configuration.

In /usr/src/contrib/openresolv/pdnsd.in, it uses
        printf %s "$newconf" >> "$cf"
In the old versions of openresolv, %s was not present, and it works correctly.
In the latest version of openresolv (3.6.2), "\n" is not used, but $NL is used,
so it should also work. But current version in our repo was 3.4.4, which has
this problem.

Please import new version of openresolv to fix the problem.

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-198648-8>