From fcf55000bc78e6c50e08a18d54808e67746625c7 Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Tue, 29 Jun 2010 23:22:06 -0700 Subject: getgrent returns a space-separated field, not colon-separated. --- usr/src/libpiny/lib/Piny/User.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr/src') diff --git a/usr/src/libpiny/lib/Piny/User.pm b/usr/src/libpiny/lib/Piny/User.pm index 06226cb..ccdf714 100644 --- a/usr/src/libpiny/lib/Piny/User.pm +++ b/usr/src/libpiny/lib/Piny/User.pm @@ -192,7 +192,7 @@ sub _build_groups { while ( @ent = getgrent( ) ) { next if ( $ent[3] eq "" ); - foreach my $member ( split( /:/, $ent[3] ) ) { + foreach my $member ( split( / /, $ent[3] ) ) { if ( $member eq $s->username( ) ) { push @res, Piny::Group->new( gid => $ent[2] ); last; -- cgit v1.2.3