[augeas-devel] sudoers lens not working

David Lutterkort lutter at redhat.com
Fri Mar 20 03:21:28 UTC 2009


On Thu, 2009-03-19 at 19:50 -0700, Robin Lee Powell wrote:
> That means that augeas can't parse it.  Look under
> "/augeas/files/etc/sudoers/" to see why, although I've gotta say
> that Augeas' parse errors are generally entirely unhelpful:

Point well taken ... any suggestion for better error messages ?  The
short iteration in particular means that it is working on a lens of the
form 'l*'. The way it does that is that it first figures out what part
of the string the whole l* applies to, and then repeatedly matches l
against it - 'short iteration' means that it gets stuck doing that
somewhere.

> augtool> ls /augeas/files/etc/sudoers/error/
> pos = 2587
> message = Short iteration
> 
> It's the one thing I don't like about it.  At least give me a line
> number.  :(

Augeas doesn't know about lines - it's all about matching opaque
regexps. The 'pos' gives you the number of characters into the string
where parsing failed.

David





More information about the augeas-devel mailing list