summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjrayhawk+piny.be@omgwallhack.org <jrayhawk@dev.piny.svcs.cs.pdx.edu>2010-10-16 22:12:50 -0700
committerjrayhawk+piny.be@omgwallhack.org <jrayhawk@dev.piny.svcs.cs.pdx.edu>2010-10-16 22:12:50 -0700
commit334bdb5ea2892efa9bee6baedf6533a052c9630a (patch)
tree57dbe1da075076b2a576b9c3e5b859ac5828da46
parentc434e582f14b1ae52be41f614b364c93936a959b (diff)
downloadpiny-code-334bdb5ea2892efa9bee6baedf6533a052c9630a.tar.gz
piny-code-334bdb5ea2892efa9bee6baedf6533a052c9630a.zip
Fixing new root logic on rmrepo
-rwxr-xr-xusr/src/pinyadmin/sbin/rmrepo2
1 files changed, 1 insertions, 1 deletions
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;
};