[augeas-devel] [PATCH] group lens
David Lutterkort
lutter at redhat.com
Mon Dec 22 18:59:42 UTC 2008
On Sat, 2008-12-20 at 11:32 +0000, free at 64studio.com wrote:
> commit 5658eb76a4a1d51c1a381a262bbacacc375767f3
> Author: Free Ekanayaka <free at 64studio.com>
> Date: Sat Dec 20 00:20:52 2008 +0000
>
> Add lens and test for /etc/group
Yeah, this is much needed.
> +(************************************************************************
> + * ENTRIES
> + *************************************************************************)
> +
> +let entry = [ key word
> + . colon
> + . [ label "password" . store word . colon ]
> + . [ label "gid" . store integer . colon ]
> + . [ label "users" . sto_to_eol? ]
> + . eol ]
I'd prefer if we split the list of users into individual entries in the
tree, so that we'd get
test Group.lns get "group:x:199:bill,martha" =
{ "group"
{ "password" = "x" }
{ "gid" = "199" }
{ "user" = "bill" }
{ "user" = "martha"} }
David
More information about the augeas-devel
mailing list