On many places, especially in the installer, we need to change contents of a config file. Instead of ad-hoc routines we use now, we might want to use augeas - http://augeas.net/ which provides safe means to modify a file. Augeas works by transforming a config file into a tree based on grammar of the file and then modifying the tree.
I think this is a post-2.0 ticket.
We could use augeas at least on named_conf_get_directive() and named_conf_get_directive() functions.
Currently these functions parse named.conf per line, if user instead of
options {
uses
they stop working.
Replying to [comment:5 mbasti]:
We could use augeas at least on named_conf_get_directive() and named_conf_get_directive() functions. Currently these functions parse named.conf per line, if user instead of {{{ options { }}} uses {{{ options { }}} they stop working.
Currently these functions parse named.conf per line, if user instead of {{{ options { }}} uses {{{ options { }}} they stop working.
Can you please attach an example named.conf file?
Metadata Update from @jhrozek: - Issue assigned to jcholast - Issue set to the milestone: Tickets Deferred
Metadata Update from @pcech: - Issue close_status updated to: wontfix - Issue status updated to: Closed (was: Open)
Login to comment on this ticket.