[augeas-devel] Fixes for variables in path expressions

David Lutterkort lutter at redhat.com
Tue Mar 24 01:47:02 UTC 2009


These three patches address a couple of bugs and ashortcoming in the
variables for path expressions I posted yesterday.

It's quite common that C code wants to use a variable as an abbreviation
fora node, and if that node does not exist, it should just be
created. That's a cumbersome with the existing calls. The new call
aug_defnode does just that: after calling aug_defnode(aug, "x", "/foo/bar")
it is assured that /foo/bar exists.

Is it too confusing that there is a defvar and a defnode ? It's crystal
clear to me ;)

David




More information about the augeas-devel mailing list