[augeas-devel] Deactivated groups in /etc/group have "!" as a password

Raphaël Pinson raphink at gmail.com
Tue Apr 27 08:42:10 UTC 2010


diff --git a/lenses/group.aug b/lenses/group.aug
index 1fbec6d..b0a867d 100644
Here is a patch to allow "!" as a password in /etc/group.


--- a/lenses/group.aug
+++ b/lenses/group.aug
@@ -22,7 +22,7 @@ let comma      = Sep.comma

 let sto_to_spc = store Rx.space_in

-let word    = Rx.word
+let word    = Rx.word | "!"
 let password = /[A-Za-z0-9_.!*-]*/
 let integer = Rx.integer

diff --git a/lenses/tests/test_group.aug b/lenses/tests/test_group.aug
index 5de0ff9..92f590a 100644
--- a/lenses/tests/test_group.aug
+++ b/lenses/tests/test_group.aug
@@ -2,7 +2,7 @@ module Test_group =

 let conf = "bin:x:2:
 audio:x:29:joe
-avahi-autoipd:x:113:bill,martha
+avahi-autoipd:!:113:bill,martha
 "

 test Group.lns get conf =
@@ -14,7 +14,7 @@ test Group.lns get conf =
      { "gid" = "29" }
      { "user" = "joe" } }
    { "avahi-autoipd"
-     { "password" = "x" }
+     { "password" = "!" }
      { "gid" = "113" }
      { "user" = "bill"}
      { "user" = "martha"} }



Regards


Raphaël Pinson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/augeas-devel/attachments/20100427/9eb845fb/attachment.htm>


More information about the augeas-devel mailing list