From 334bdb5ea2892efa9bee6baedf6533a052c9630a Mon Sep 17 00:00:00 2001 From: "jrayhawk+piny.be@omgwallhack.org" Date: Sat, 16 Oct 2010 22:12:50 -0700 Subject: Fixing new root logic on rmrepo --- usr/src/pinyadmin/sbin/rmrepo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/src/pinyadmin/sbin/rmrepo b/usr/src/pinyadmin/sbin/rmrepo index 41c2b13..dff8fe5 100755 --- a/usr/src/pinyadmin/sbin/rmrepo +++ b/usr/src/pinyadmin/sbin/rmrepo @@ -11,7 +11,7 @@ foreach my $reponame ( @ARGV ) { my $repo = Piny::Repo->new( $reponame ); - if ( $env->user->uid == 0 or $repo->owner->uid != $env->user->uid ) { + if ( $env->user->uid != 0 and $repo->owner->uid != $env->user->uid ) { print STDERR "You are not the owner of $reponame!\n"; exit 1; }; -- cgit v1.2.3