summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2017-04-03 17:32:58 +0100
committerDavid Mitchell <davem@iabyn.com>2017-04-07 14:42:24 +0100
commit3cf6d6323b374dd6f32717ffa188a6ed9aa3f2d3 (patch)
treedb871d2dfb58e3a54e8721eae17a61a0c369ebda /utils
parentea572010a87173fe35caf8ebdb714741677b42b6 (diff)
downloadperl-3cf6d6323b374dd6f32717ffa188a6ed9aa3f2d3.tar.gz
utils/libnetcfg: fix 'do' without '.' in @INC
Note that this isn't normally executed during build, so it wasn't spotted earlier.
Diffstat (limited to 'utils')
-rw-r--r--utils/libnetcfg.PL2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/libnetcfg.PL b/utils/libnetcfg.PL
index f66e9b0acb..e1e9ee270f 100644
--- a/utils/libnetcfg.PL
+++ b/utils/libnetcfg.PL
@@ -343,7 +343,7 @@ my %oldcfg = ();
$Net::Config::CONFIGURE = 1; # Suppress load of user overrides
if( -f $libnet_cfg_in )
{
- %oldcfg = ( %{ do $libnet_cfg_in } );
+ %oldcfg = ( %{ local @INC = '.'; do $libnet_cfg_in } );
}
elsif (eval { require Net::Config })
{