From: Regina Obe Date: Tue, 6 Sep 2016 15:16:35 +0000 (+0000) Subject: load_outdb related tests fix for @INC change in perl X-Git-Tag: 2.3.0rc1~29 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=324b1f33e1e2fa78f17a2400981be8a21c762889;p=postgis load_outdb related tests fix for @INC change in perl fix for PostGIS 2.3, patch from Sebastiaan Couwenberg for #3624 git-svn-id: http://svn.osgeo.org/postgis/trunk@15072 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/regress/run_test.pl b/regress/run_test.pl index 5eabf4337..626686eb5 100755 --- a/regress/run_test.pl +++ b/regress/run_test.pl @@ -22,6 +22,13 @@ use Cwd 'abs_path'; use Getopt::Long; use strict; +################################################################## +# Add . to @INC if removed for CVE-2016-1238 +################################################################## +BEGIN { + push @INC, "." if(!grep /^\.$/, @INC); +} + ################################################################## # Usage ./run_test.pl []