summaryrefslogtreecommitdiff
path: root/usr
diff options
context:
space:
mode:
authorjrayhawk+piny.be@omgwallhack.org <jrayhawk@dev.piny.svcs.cs.pdx.edu>2010-10-16 22:09:54 -0700
committerjrayhawk+piny.be@omgwallhack.org <jrayhawk@dev.piny.svcs.cs.pdx.edu>2010-10-16 22:09:54 -0700
commitc434e582f14b1ae52be41f614b364c93936a959b (patch)
tree871e96f474617a120b357f8f851c5e4a4fa85ab0 /usr
parentf91f128d8789a2c42a84d7f6593ff9d479ac283e (diff)
downloadpiny-code-c434e582f14b1ae52be41f614b364c93936a959b.tar.gz
piny-code-c434e582f14b1ae52be41f614b364c93936a959b.zip
Make root able to rmrepo whatever it likes
Diffstat (limited to 'usr')
-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 e12a067..41c2b13 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 ( $repo->owner->uid != $env->user->uid ) {
+ if ( $env->user->uid == 0 or $repo->owner->uid != $env->user->uid ) {
print STDERR "You are not the owner of $reponame!\n";
exit 1;
};