[augeas-devel] Re: [Augeas] #48: sudoers lens does not handle multiline strings
Augeas
trac at fedorahosted.org
Fri Mar 20 18:45:09 UTC 2009
#48: sudoers lens does not handle multiline strings
--------------------------+-------------------------------------------------
Reporter: fsweetser | Owner: lutter
Type: enhancement | Status: new
Priority: minor | Milestone: next
Component: Augeas | Version: 0.4.1
Resolution: | Keywords: sudoers
--------------------------+-------------------------------------------------
Comment (by raphink):
Several options are possible to fix this bug :[[BR]]
1. add "\\" and "\n" as possible characters in the field. It will then
be mapped with the "\\\n" in the string. This can potentially make some
horrible lines that still have to be parsed ;[[BR]]
2. parse the value of Defaults line by line and map it into the tree in
"line" nodes. This makes it a bit heavy when there is only one line, and
doesn't necessarily reflect the reality of the configuration ;[[BR]]
3. parse the contents of Defaults. This allows to ignore the "\\\n" as
value separators when they appear. This option might be harder to
implement though, since Defaults values can be quite tricky.[[BR]]
--
Ticket URL: <https://fedorahosted.org/augeas/ticket/48#comment:1>
Augeas <http://augeas.net/>
a configuration API
More information about the augeas-devel
mailing list