summaryrefslogtreecommitdiff
path: root/usr/src/libpiny/lib/Piny/Repo.pm
diff options
context:
space:
mode:
authorJulian Blake Kongslie <jblake@omgwallhack.org>2010-06-29 22:51:14 -0700
committerJulian Blake Kongslie <jblake@omgwallhack.org>2010-06-29 22:51:14 -0700
commit6eb23f2537b0bc09d110a09d5b50784054e59416 (patch)
tree3a4daa1991cf6a9883efa1a64261ea8b3a974767 /usr/src/libpiny/lib/Piny/Repo.pm
parent8944a40faca17416faa6688183706263bef0ef4c (diff)
downloadpiny-code-6eb23f2537b0bc09d110a09d5b50784054e59416.tar.gz
piny-code-6eb23f2537b0bc09d110a09d5b50784054e59416.zip
Properly close pwent; correct precedence on membership tests.
Diffstat (limited to 'usr/src/libpiny/lib/Piny/Repo.pm')
-rw-r--r--usr/src/libpiny/lib/Piny/Repo.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/libpiny/lib/Piny/Repo.pm b/usr/src/libpiny/lib/Piny/Repo.pm
index bd1a3c6..84b5bb4 100644
--- a/usr/src/libpiny/lib/Piny/Repo.pm
+++ b/usr/src/libpiny/lib/Piny/Repo.pm
@@ -102,7 +102,7 @@ sub remove_access {
sub has_access {
my ( $s, $user ) = @_;
- return $s->owner( )->uid( ) == $user->uid( ) or $user->has_group( $s->group( ) );
+ return $s->owner( )->uid( ) == $user->uid( ) || $user->has_group( $s->group( ) );
};
# Triggers