diff options
author | Julian Blake Kongslie <jblake@omgwallhack.org> | 2010-06-29 23:22:06 -0700 |
---|---|---|
committer | Julian Blake Kongslie <jblake@omgwallhack.org> | 2010-06-29 23:22:06 -0700 |
commit | fcf55000bc78e6c50e08a18d54808e67746625c7 (patch) | |
tree | d44e90583826388f5b5819b3acdc09fdf383c457 | |
parent | 35d68a7901ea1fc1f7236e797ed63a85ae26b5ec (diff) | |
download | piny-code-fcf55000bc78e6c50e08a18d54808e67746625c7.tar.gz piny-code-fcf55000bc78e6c50e08a18d54808e67746625c7.zip |
getgrent returns a space-separated field, not colon-separated.
-rw-r--r-- | usr/src/libpiny/lib/Piny/User.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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; |