[augeas-devel] [Augeas] #29: augtool should warn if using paths outside /files/... or /augeas/...
Augeas
trac at fedorahosted.org
Thu Nov 20 16:02:47 UTC 2008
#29: augtool should warn if using paths outside /files/... or /augeas/...
-------------------------+--------------------------------------------------
Reporter: apevec | Owner: lutter
Type: enhancement | Status: new
Priority: major | Milestone: next
Component: Augeas | Version: 0.3.4
Keywords: |
-------------------------+--------------------------------------------------
simple typo confused me:
# augtool
augtool> set /file/etc/sysconfig/network-scripts/ifcfg-most0/DEVICE most0
augtool> set /file/etc/sysconfig/network-scripts/ifcfg-most0/TYPE bridge
augtool> ls /file/etc/sysconfig/network-scripts/ifcfg-most0
DEVICE = most0
TYPE = bridge
augtool> save
augtool>
[root at gigolo tmp]# cat /etc/sysconfig/network-scripts/ifcfg-most0
cat: /etc/sysconfig/network-scripts/ifcfg-most0: No such file or directory
save silently fails? Not really, it's because corrects paths where
filesystem is mapped start with /file'''s'''/ not /file/...
To avoid confusion, I propose that augtool issues a warning if path
outside /files/ or /augeas/ is used.
--
Ticket URL: <https://fedorahosted.org/augeas/ticket/29>
Augeas <http://augeas.net/>
a configuration API
More information about the augeas-devel
mailing list