diff options
author | lpsolit%gmail.com <> | 2006-06-14 09:26:27 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2006-06-14 09:26:27 +0200 |
commit | 9d8e3ef8873724dff896687a783dbd1ff3295297 (patch) | |
tree | 037d81b4d9d078fb5ba351bb314e58d217da02c3 /checksetup.pl | |
parent | 9d666ab3e6c3516d5b1b63d560c20c19e416e542 (diff) | |
download | bugzilla-9d8e3ef8873724dff896687a783dbd1ff3295297.tar.gz bugzilla-9d8e3ef8873724dff896687a783dbd1ff3295297.tar.xz |
Bug 313255: Move $::ENV{foo} and $::SIG{foo} out of globals.pl - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=myk
Diffstat (limited to 'checksetup.pl')
-rwxr-xr-x | checksetup.pl | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/checksetup.pl b/checksetup.pl index 7e7f7b4e1..f5380e22e 100755 --- a/checksetup.pl +++ b/checksetup.pl @@ -1500,24 +1500,12 @@ import Bugzilla::User qw(insert_new_user); require Bugzilla::Bug; import Bugzilla::Bug qw(is_open_state); -# globals.pl clears the PATH, but File::Find uses Cwd::cwd() instead of -# Cwd::getcwd(), which we need to do because `pwd` isn't in the path - see -# http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2001-09/msg00115.html -# As a workaround, since we only use File::Find in checksetup, which doesn't -# run in taint mode anyway, preserve the path... -my $origPath = $::ENV{'PATH'}; - # Use the Bugzilla utility library for various functions. We do this # here rather than at the top of the file so globals.pl doesn't define # localconfig variables for us before we get a chance to check for -# their existence and create them if they don't exist. Also, globals.pl -# removes $ENV{'path'}, which we need in order to run `which mysql` above. +# their existence and create them if they don't exist. require "globals.pl"; -# ...and restore it. This doesn't change tainting, so this will still cause -# errors if this script ever does run with -T. -$::ENV{'PATH'} = $origPath; - ########################################################################### # Check Database setup ########################################################################### |