[Bug 198648] resolvconf does not modify pdnsd.conf correctly

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Mar 17 03:38:45 UTC 2015


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 at FreeBSD.org
          Reporter: henry.hu.sh at 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.


More information about the freebsd-bugs mailing list