From c434e582f14b1ae52be41f614b364c93936a959b Mon Sep 17 00:00:00 2001 From: "jrayhawk+piny.be@omgwallhack.org" Date: Sat, 16 Oct 2010 22:09:54 -0700 Subject: Make root able to rmrepo whatever it likes --- usr/src/pinyadmin/sbin/rmrepo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr/src') 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; }; -- cgit v1.2.3