diff options
author | jrayhawk+piny.be@omgwallhack.org <jrayhawk+piny.be@omgwallhack.org> | 2012-06-01 20:00:32 -0700 |
---|---|---|
committer | jrayhawk+piny.be@omgwallhack.org <jrayhawk+piny.be@omgwallhack.org> | 2012-06-01 20:00:32 -0700 |
commit | 911981b2243ee3c15f269f16bdd172f7746564ce (patch) | |
tree | da40a878354450508793d3fe6aafaf5d6068ce08 /pinyadmin | |
parent | 1938e51baa37fc68dc423ab5c29f5ea9c2f58ab3 (diff) | |
download | piny-code-911981b2243ee3c15f269f16bdd172f7746564ce.tar.gz piny-code-911981b2243ee3c15f269f16bdd172f7746564ce.zip |
pinyadmin: pinyconfig: allow --user to actually set things
Diffstat (limited to 'pinyadmin')
-rwxr-xr-x | pinyadmin/sbin/pinyconfig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pinyadmin/sbin/pinyconfig b/pinyadmin/sbin/pinyconfig index 03531b1..039d6b4 100755 --- a/pinyadmin/sbin/pinyconfig +++ b/pinyadmin/sbin/pinyconfig @@ -41,7 +41,7 @@ if ( not defined $attr ) { $attr =~ s/\./_/g; if ( defined $value ) { - if ( $env->user->uid != 0 and $repo->owner->uid != $env->user->uid ) { + unless ( $env->user->uid == 0 or $reponame eq "--user" or $repo->owner->uid == $env->user->uid ) { print "You are not the owner of that repo!\n"; exit( 3 ); }; |