summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorSeth <seth.mos@xs4all.nl>2009-09-30 12:53:54 +0200
committerSeth <seth.mos@xs4all.nl>2009-09-30 12:53:54 +0200
commit0c8ec13a17e9dac17bf2761fbf424c9462fb998e (patch)
tree3739a435eddd92ca4c25d021cc7f02bef4bd8a25 /etc/inc
parent817e358db26b834720cc03aba46efae2464e8815 (diff)
downloadpfsense-0c8ec13a17e9dac17bf2761fbf424c9462fb998e.zip
pfsense-0c8ec13a17e9dac17bf2761fbf424c9462fb998e.tar.gz
Make sure that we always end the file with a carriage return, if we have a single record the carriage return is missing which causes dnswatch to crash.
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/vpn.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc
index 0a584d5..1183ad4 100644
--- a/etc/inc/vpn.inc
+++ b/etc/inc/vpn.inc
@@ -676,6 +676,7 @@ EOD;
$hostnames = "";
array_unique($dnswatch_list);
$hostnames = implode("\n", $dnswatch_list);
+ $hostnames .= "\n";
file_put_contents("{$g['varetc_path']}/dnswatch-ipsec.hosts", $hostnames);
killbypid("{$g['varrun_path']}/dnswatch-ipsec.pid");
mwexec("/usr/local/sbin/dnswatch {$g['varrun_path']}/dnswatch-ipsec.pid $interval /etc/rc.newipsecdns {$g['varetc_path']}/dnswatch-ipsec.hosts", false);
@@ -1348,4 +1349,4 @@ function return_ipsec_sad_array() {
return($sad);
}
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud