]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 131521 - Set $::ENV{PATH} so that we don't get bogus 15 line warnings
authorbbaetz%student.usyd.edu.au <>
Sat, 23 Mar 2002 11:51:05 +0000 (11:51 +0000)
committerbbaetz%student.usyd.edu.au <>
Sat, 23 Mar 2002 11:51:05 +0000 (11:51 +0000)
from perl 5.6.1's Cwd.pm on every system() call.
r=mattyt, justdave

globals.pl

index 417241b50fd94e74763986372ed07df565be6050..cac9669a54b7d365d2790b19cacdf19806ded713 100644 (file)
@@ -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';