diff options
author | Tony Cook <tony@develop-help.com> | 2016-06-27 16:21:21 +1000 |
---|---|---|
committer | Tony Cook <tony@develop-help.com> | 2016-07-26 15:36:32 +1000 |
commit | b8097e9479a0aafd1182244c6f9a955c57fb6b1a (patch) | |
tree | b2972f3519bf10c282667607773c03c05e443583 /cpan/ExtUtils-MakeMaker | |
parent | 38b4af19a42e6a4b9d5c8cc97fd06d954fff69a8 (diff) | |
download | perl-b8097e9479a0aafd1182244c6f9a955c57fb6b1a.tar.gz |
cpan/: remove . from @INC when loading optional modules
Diffstat (limited to 'cpan/ExtUtils-MakeMaker')
-rw-r--r-- | cpan/ExtUtils-MakeMaker/lib/ExtUtils/Command.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cpan/ExtUtils-MakeMaker/lib/ExtUtils/Command.pm b/cpan/ExtUtils-MakeMaker/lib/ExtUtils/Command.pm index a1d70b5301..c2149707b4 100644 --- a/cpan/ExtUtils-MakeMaker/lib/ExtUtils/Command.pm +++ b/cpan/ExtUtils-MakeMaker/lib/ExtUtils/Command.pm @@ -20,7 +20,10 @@ if( $Is_VMS ) { my $vms_efs; my $vms_case; - if (eval { local $SIG{__DIE__}; require VMS::Feature; }) { + if (eval { local $SIG{__DIE__}; + local @INC = @INC; + pop @INC if $INC[-1] eq '.'; + require VMS::Feature; }) { $vms_unix_rpt = VMS::Feature::current("filename_unix_report"); $vms_efs = VMS::Feature::current("efs_charset"); $vms_case = VMS::Feature::current("efs_case_preserve"); |