map groups by name instead of gid
Robert 'phaylon' Sedlacek [Fri, 11 May 2012 21:46:03 +0000 (21:46 +0000)]
lib/System/Introspector/Groups.pm

index 15ea3b7..db6e358 100644 (file)
@@ -17,7 +17,7 @@ sub gather {
             $users = length($users)
                 ? [split m{,}, $users]
                 : [];
-            $group{ $gid } = {
+            $group{ $name } = {
                 name    => $name,
                 gid     => $gid,
                 users   => $users,