From ea0c11add6861824664f844b1014517e4c20df1e Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Tue, 8 Apr 2014 02:35:14 -0700 Subject: arpwatch quotes only go around email address #3584 This was updated recently by https://github.com/pfsense/pfsense-packages/commit/fc65960f7eeaa45d5f0df1e57bb8868a80180fa0 but it just looks like the wrong place to add the quotes. Please test before committing. --- config/arpwatch.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config/arpwatch.xml') diff --git a/config/arpwatch.xml b/config/arpwatch.xml index 7c114c2e..f77fce34 100644 --- a/config/arpwatch.xml +++ b/config/arpwatch.xml @@ -113,13 +113,13 @@ $debug = ""; if(($pf_version > 2.0) && (isset($_POST['enable_email']) || ($config['installedpackages']['arpwatch']['config'][0]['enable_email'] == "on"))) { if (!empty($config['notifications']['smtp']['notifyemailaddress'])) - $mail = " -m {$config['notifications']['smtp']['notifyemailaddress']}"; + $mail = " -m \"{$config['notifications']['smtp']['notifyemailaddress']}\""; } else { $debug = "-d"; } $int = convert_friendly_interface_to_real_interface_name($int); $start = "touch {$log_file}\n"; - $start .= "/usr/local/sbin/arpwatch {$debug} -f {$log_file} \"{$mail}\" -i {$int} > /var/log/arpwatch.reports 2>&1 &"; + $start .= "/usr/local/sbin/arpwatch {$debug} -f {$log_file} {$mail} -i {$int} > /var/log/arpwatch.reports 2>&1 &"; $stop = "/usr/bin/killall arpwatch"; write_rcfile(array( "file" => "arpwatch.sh", -- cgit v1.2.3