Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

3 views
Skip to first unread message

bugzilla...@freebsd.org

unread,
Mar 16, 2015, 11:38:55 PM3/16/15
to freebs...@freebsd.org
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: freebs...@FreeBSD.org
Reporter: henry...@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.
_______________________________________________
freebs...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs...@freebsd.org"

bugzilla...@freebsd.org

unread,
Mar 17, 2015, 10:18:28 AM3/17/15
to freebs...@freebsd.org
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198648

Mark Linimon <lin...@FreeBSD.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Component|conf |bin

bugzilla...@freebsd.org

unread,
Oct 13, 2016, 9:33:47 PM10/13/16
to freebs...@freebsd.org
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198648

Henry Hu <henry...@gmail.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|New |Closed

--- Comment #1 from Henry Hu <henry...@gmail.com> ---
New openresolv has been imported. The bug is fixed.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebs...@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
0 new messages