diff options
author | Julian Blake Kongslie <jblake@omgwallhack.org> | 2010-06-29 23:25:48 -0700 |
---|---|---|
committer | Julian Blake Kongslie <jblake@omgwallhack.org> | 2010-06-29 23:25:48 -0700 |
commit | 7caba661a9c9602bc9430c0259bba6fa814a6868 (patch) | |
tree | 45f205cdf5b011b30264bddb16827a903c24b406 /usr | |
parent | fcf55000bc78e6c50e08a18d54808e67746625c7 (diff) | |
download | piny-code-7caba661a9c9602bc9430c0259bba6fa814a6868.tar.gz piny-code-7caba661a9c9602bc9430c0259bba6fa814a6868.zip |
Oh yeah, return *true* if the user is in the group.
Diffstat (limited to 'usr')
-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 ccdf714..559adfd 100644 --- a/usr/src/libpiny/lib/Piny/User.pm +++ b/usr/src/libpiny/lib/Piny/User.pm @@ -81,7 +81,7 @@ sub has_group { my ( $s, $group ) = @_; foreach my $owngroup ( @{$s->groups( )} ) { - return if $owngroup->gid( ) == $group->gid( ); + return 1 if $owngroup->gid( ) == $group->gid( ); }; return; |