[augeas-devel] [Augeas] #29: augtool should warn if using paths outside /files/... or /augeas/...
Augeas
trac at fedorahosted.org
Sat Nov 10 10:16:23 UTC 2012
#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
Resolution: | Keywords:
Blocked By: | Blocking:
--------------------------+--------------------
Description changed by raphink:
Old description:
> 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.
New description:
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#comment:2>
Augeas <http://augeas.net/>
a configuration API
More information about the augeas-devel
mailing list