aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2017-10-13 22:22:51 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2017-10-13 22:22:51 +0200
commitd9ec121f85de3877a5d25a10435f4ccc1d34cf6e (patch)
tree447afa5cf2f450d5d3877cd73470357dbe6a1578
parentc85ce69978f3b6682c085a848ea393bad51d69ec (diff)
downloadiurt-d9ec121f85de3877a5d25a10435f4ccc1d34cf6e.tar
iurt-d9ec121f85de3877a5d25a10435f4ccc1d34cf6e.tar.gz
iurt-d9ec121f85de3877a5d25a10435f4ccc1d34cf6e.tar.bz2
iurt-d9ec121f85de3877a5d25a10435f4ccc1d34cf6e.tar.xz
iurt-d9ec121f85de3877a5d25a10435f4ccc1d34cf6e.zip
perl_checker cleanups
-rwxr-xr-xiurt_root_command2
1 files changed, 1 insertions, 1 deletions
diff --git a/iurt_root_command b/iurt_root_command
index e332717..87b5c5e 100755
--- a/iurt_root_command
+++ b/iurt_root_command
@@ -420,7 +420,7 @@ sub netns_create {
system("ip", "netns", "add", $nsname) and return;
system("ip", "netns", "exec", $nsname, "ifconfig", "lo", "up");
# We don't configure a DNS server so make sure one is not excepted
- system("sed -i 's|^hosts:.*|hosts: files|' $dest/etc/nsswitch.conf");
+ system('sed', '-i', 's|^hosts:.*|hosts: files|', "$dest/etc/nsswitch.conf");
# Some packages want a default route
system("ip", "netns", "exec", $nsname, "ip", "route", "add", "0.0.0.0/0", "dev", "lo");
my $hostname = `hostname`;