[augeas-devel] [Augeas] #90: inittab lens should allow # in the field values
Augeas
trac at fedorahosted.org
Wed Oct 21 22:22:41 UTC 2009
#90: inittab lens should allow # in the field values
---------------------+------------------------------------------------------
Reporter: caetano | Owner: lutter
Type: defect | Status: new
Priority: major | Milestone: next
Component: Augeas | Version: 0.5.3
Keywords: |
---------------------+------------------------------------------------------
We install various IBM software and DB2 and Tivoli Directory Server add
entries to the inittab like this:
fmc:2345:respawn:/opt/ibm/db2/V9.5/bin/db2fmcd #DB2 Fault Monitor
Coordinator
ids0:2345:once:/opt/ibm/ldap/V6.2/sbin/ibmdiradm -I ldapdb > /dev/null
2>&1 #Autostart IBM LDAP Admin Daemon Instance
This doesn't parse in the current inittab.aug (0.5.3) because
let value = /[^#:\n]*/
Doesn't allow a # comment character in the value, so the process field
can't have it and then it doesn't swallow up everything to the eol as
expected...
My fix which I have deployed to /usr/share/augeas/lenses/ just sets
let value = /[^:\n]*/
i.e. I allow #s in values which seems reasonable as only really ids need
that protection...
This makes the inittab with the above lines parse with the lense.
Please consider adding this change to the official distribution.
--
Ticket URL: <https://fedorahosted.org/augeas/ticket/90>
Augeas <http://augeas.net/>
a configuration API
More information about the augeas-devel
mailing list