summaryrefslogtreecommitdiff
path: root/usr/src/libpiny/lib/Piny
diff options
context:
space:
mode:
authorJulian Blake Kongslie <jblake@omgwallhack.org>2010-06-29 23:22:06 -0700
committerJulian Blake Kongslie <jblake@omgwallhack.org>2010-06-29 23:22:06 -0700
commitfcf55000bc78e6c50e08a18d54808e67746625c7 (patch)
treed44e90583826388f5b5819b3acdc09fdf383c457 /usr/src/libpiny/lib/Piny
parent35d68a7901ea1fc1f7236e797ed63a85ae26b5ec (diff)
downloadpiny-code-fcf55000bc78e6c50e08a18d54808e67746625c7.tar.gz
piny-code-fcf55000bc78e6c50e08a18d54808e67746625c7.zip
getgrent returns a space-separated field, not colon-separated.
Diffstat (limited to 'usr/src/libpiny/lib/Piny')
-rw-r--r--usr/src/libpiny/lib/Piny/User.pm2
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;