From d57e19dce55d502cd0ac8bf34b48fd43d7b6d1f8 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 18 Apr 2007 19:49:59 +0000 Subject: [PATCH] Do not carriage return in the middle of a shell command --- etc/inc/pfsense-utils.inc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 908300af42..e4085a9d74 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -1288,8 +1288,7 @@ function find_interface_ip($interface, $flush = false) { } function guess_interface_from_ip($ipaddress) { - $ret = exec_command("/sbin/route -n get {$ipaddress} | /usr/bin/grep interface | /usr/bin/awk '{ print \$2 -; };'"); + $ret = exec_command("/sbin/route -n get {$ipaddress} | /usr/bin/grep interface | /usr/bin/awk '{ print \$2; };'"); return $ret; }