summaryrefslogtreecommitdiffstats
path: root/globals.pl
diff options
context:
space:
mode:
authorbbaetz%student.usyd.edu.au <>2002-03-23 12:51:05 +0100
committerbbaetz%student.usyd.edu.au <>2002-03-23 12:51:05 +0100
commit9682abb91244156f5106b0e9abf7cdb19f5f98fa (patch)
tree11fe772290b0e09c24d87b695699e8065c481bde /globals.pl
parentce2652d5e2b998a98e378829e92d32f4219c06bd (diff)
downloadbugzilla-9682abb91244156f5106b0e9abf7cdb19f5f98fa.tar.gz
bugzilla-9682abb91244156f5106b0e9abf7cdb19f5f98fa.tar.xz
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
Diffstat (limited to 'globals.pl')
-rw-r--r--globals.pl5
1 files changed, 5 insertions, 0 deletions
diff --git a/globals.pl b/globals.pl
index 417241b50..cac9669a5 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';