[augeas-devel] [Augeas] #311: dhcpd.conf subnet filename setting is not quoted
Augeas
trac at fedorahosted.org
Tue Dec 4 17:47:58 UTC 2012
#311: dhcpd.conf subnet filename setting is not quoted
------------------------------+---------------------
Reporter: mfrisch | Owner: lutter
Type: defect | Status: new
Priority: minor | Milestone: next
Component: Augeas | Version: 0.9.0
Keywords: dhcpd dhcpd.conf | Blocked By:
Blocking: |
------------------------------+---------------------
The argument of "filename" within a "subnet xxx.xxx.xxx.xxx netmask
yyy.yyy.yyy.yyy" block must be quoted, otherwise dhcpd does not start. I
see no option to force Augeas to quote an argument.
Set the value:
{{{
[root at c63-installer ~]# augtool -L
augtool> set /augeas/load/Dhcpd/incl[last()+1] /etc/dhcp/dhcpd.conf
augtool> load
augtool> set /files/etc/dhcp/dhcpd.conf/subnet/filename pxelinux.0
augtool> print /files/etc/dhcp/dhcpd.conf/subnet/filename
/files/etc/dhcp/dhcpd.conf/subnet/filename = "pxelinux.0"
augtool> save
Saved 1 file(s)
augtool>
}}}
Display value set by Augeas:
{{{
[root at c63-installer ~]# augtool -L
augtool> set /augeas/load/Dhcpd/incl[last()+1] /etc/dhcp/dhcpd.conf
augtool> load
augtool> print /files/etc/dhcp/dhcpd.conf/subnet/filename
/files/etc/dhcp/dhcpd.conf/subnet/filename = "pxelinux.0"
augtool>
}}}
`/etc/dhcp/dhcpd.conf` contains:
{{{
...
subnet 172.16.0.0 netmask 255.255.255.0 {
...
filename pxelinux.0;
...
}
...
}}}
If double-quotes are placed around the argument, Augeas wraps that in
single-quotes, which is also invalid.
dhcpd 4.1.1-31.P1 (from CentOS 6.3) will not start if this argument is not
quoted.
--
Ticket URL: <https://fedorahosted.org/augeas/ticket/311>
Augeas <http://augeas.net/>
a configuration API
More information about the augeas-devel
mailing list