From: bbaetz%student.usyd.edu.au <> Date: Sat, 23 Mar 2002 11:51:05 +0000 (+0000) Subject: Bug 131521 - Set $::ENV{PATH} so that we don't get bogus 15 line warnings X-Git-Tag: bugzilla-2.16rc1~176 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9682abb91244156f5106b0e9abf7cdb19f5f98fa;p=thirdparty%2Fbugzilla.git Bug 131521 - Set $::ENV{PATH} so that we don't get bogus 15 line warnings from perl 5.6.1's Cwd.pm on every system() call. r=mattyt, justdave --- diff --git a/globals.pl b/globals.pl index 417241b50f..cac9669a54 100644 --- a/globals.pl +++ b/globals.pl @@ -86,6 +86,11 @@ use File::Spec; # Some environment variables are not taint safe delete @::ENV{'PATH', 'IFS', 'CDPATH', 'ENV', 'BASH_ENV'}; +# Cwd.pm in perl 5.6.1 gives a warning if $::ENV{'PATH'} isn't defined +# Set this to '' so that we don't get warnings cluttering the logs on every +# system call +$::ENV{'PATH'} = ''; + # Contains the version string for the current running Bugzilla. $::param{'version'} = '2.15';