From: Robert 'phaylon' Sedlacek Date: Fri, 11 May 2012 21:46:03 +0000 (+0000) Subject: map groups by name instead of gid X-Git-Tag: v0.001_001~70 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=37a73739a4f91da532595da3cd987370868a455d;p=scpubgit%2FSystem-Introspector.git map groups by name instead of gid --- diff --git a/lib/System/Introspector/Groups.pm b/lib/System/Introspector/Groups.pm index 15ea3b7..db6e358 100644 --- a/lib/System/Introspector/Groups.pm +++ b/lib/System/Introspector/Groups.pm @@ -17,7 +17,7 @@ sub gather { $users = length($users) ? [split m{,}, $users] : []; - $group{ $gid } = { + $group{ $name } = { name => $name, gid => $gid, users => $users,