From 339c34215d9c46f6ebd1bbf524e73af341214610 Mon Sep 17 00:00:00 2001 From: Arnaud Desmons Date: Fri, 26 Jul 2002 12:14:24 +0000 Subject: need to chomp result of mktemp --- dhcp_wizard/scripts/Dhcpconf.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'dhcp_wizard') diff --git a/dhcp_wizard/scripts/Dhcpconf.pm b/dhcp_wizard/scripts/Dhcpconf.pm index 1358c8fd..7d5cb290 100644 --- a/dhcp_wizard/scripts/Dhcpconf.pm +++ b/dhcp_wizard/scripts/Dhcpconf.pm @@ -57,6 +57,7 @@ sub do_it { } close(OLD); close(NEW); + chomp($tmp); system("mv $tmp $file"); } $file = "/etc/dhcpd.conf"; @@ -79,6 +80,7 @@ sub do_it { } close(OLD); close(NEW); + chomp($tmp); system("mv $tmp $file"); system("touch /var/dhcpd/dhcpd.leases") or die "can not touch /var/dhcpd/dhcd.leases: $!"; # modifying webmin config -- cgit v1.2.1