From 911981b2243ee3c15f269f16bdd172f7746564ce Mon Sep 17 00:00:00 2001 From: "jrayhawk+piny.be@omgwallhack.org" Date: Fri, 1 Jun 2012 20:00:32 -0700 Subject: pinyadmin: pinyconfig: allow --user to actually set things --- pinyadmin/sbin/pinyconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pinyadmin') 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 ); }; -- cgit v1.2.3