summaryrefslogtreecommitdiff
path: root/cpan/Test-Harness
diff options
context:
space:
mode:
authorTony Cook <tony@develop-help.com>2016-06-21 10:02:02 +1000
committerSteve Hay <steve.m.hay@googlemail.com>2016-07-25 10:12:16 +0100
commit5f66e9fffdc3d0c6e0846cd1f11298e70c786c30 (patch)
tree2519637590bcb600e4ca59ae6f029e72e3dc2487 /cpan/Test-Harness
parent46b7ac49cca5dd8c4b20bdc00d54042dfa9e069a (diff)
downloadperl-5f66e9fffdc3d0c6e0846cd1f11298e70c786c30.tar.gz
(perl #127834) remove . from the end of @INC if complex modules are loaded
While currently Encode and Storable are know to attempt to load modules not included in the core, updates to other modules may lead to those also attempting to load new modules, so be safe and remove . for those as well.
Diffstat (limited to 'cpan/Test-Harness')
-rw-r--r--cpan/Test-Harness/bin/prove1
1 files changed, 1 insertions, 0 deletions
diff --git a/cpan/Test-Harness/bin/prove b/cpan/Test-Harness/bin/prove
index 6637cc4446..d71b2387d9 100644
--- a/cpan/Test-Harness/bin/prove
+++ b/cpan/Test-Harness/bin/prove
@@ -1,5 +1,6 @@
#!/usr/bin/perl -w
+BEGIN { pop @INC if $INC[-1] eq '.' }
use strict;
use warnings;
use App::Prove;