From: Andreas Barth Date: Wed, 30 Mar 2011 21:01:11 +0000 (+0000) Subject: fix a place where use strict complains X-Git-Url: https://git.donarmstrong.com/?p=wannabuild.git;a=commitdiff_plain;h=2f0549583cebcbe896ea5526070bdfeb5e810748 fix a place where use strict complains --- diff --git a/bin/wanna-build b/bin/wanna-build index 636cdae..fa13874 100755 --- a/bin/wanna-build +++ b/bin/wanna-build @@ -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";