]> git.donarmstrong.com Git - wannabuild.git/commitdiff
fix a place where use strict complains
authorAndreas Barth <aba@not.so.argh.org>
Wed, 30 Mar 2011 21:01:11 +0000 (21:01 +0000)
committerAndreas Barth <aba@not.so.argh.org>
Wed, 30 Mar 2011 21:01:32 +0000 (21:01 +0000)
bin/wanna-build

index 636cdaecca1c7749ca9309007c6f17b621c08271..fa138743c779a9fa621b61ff8440661c3ca03043 100755 (executable)
@@ -284,7 +284,7 @@ if ($distribution eq 'any-unpriv') {
 }
 
 my $schema_suffix = '';
-$recorduser //= (not -t and $user =~ /^buildd_/);
+$recorduser //= (not -t and $user//"" =~ /^buildd_/);
 if (isin( $op_mode, qw(list info)) && $distribution !~ /security/ && !$recorduser && !($privmode)) {
        $dbh = DBI->connect("DBI:Pg:service=wanna-build") || 
                die "FATAL: Cannot open database: $DBI::errstr\n";