]> granicus.if.org Git - postgis/commitdiff
load_outdb related tests fix for @INC change in perl
authorRegina Obe <lr@pcorp.us>
Tue, 6 Sep 2016 15:16:35 +0000 (15:16 +0000)
committerRegina Obe <lr@pcorp.us>
Tue, 6 Sep 2016 15:16:35 +0000 (15:16 +0000)
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

regress/run_test.pl

index 5eabf43379a2c56e9c302a51090336e60583bc35..626686eb5695a46b223af869b98892b3abc8554f 100755 (executable)
@@ -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 <testname> [<testname>]