diff options
author | jrayhawk+piny.be@omgwallhack.org <jrayhawk@dev.piny.svcs.cs.pdx.edu> | 2010-10-16 22:09:54 -0700 |
---|---|---|
committer | jrayhawk+piny.be@omgwallhack.org <jrayhawk@dev.piny.svcs.cs.pdx.edu> | 2010-10-16 22:09:54 -0700 |
commit | c434e582f14b1ae52be41f614b364c93936a959b (patch) | |
tree | 871e96f474617a120b357f8f851c5e4a4fa85ab0 | |
parent | f91f128d8789a2c42a84d7f6593ff9d479ac283e (diff) | |
download | piny-code-c434e582f14b1ae52be41f614b364c93936a959b.tar.gz piny-code-c434e582f14b1ae52be41f614b364c93936a959b.zip |
Make root able to rmrepo whatever it likes
-rwxr-xr-x | usr/src/pinyadmin/sbin/rmrepo | 2 |
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; }; |