diff options
author | Colin Smith <colin@pfsense.org> | 2005-07-14 04:32:00 +0000 |
---|---|---|
committer | Colin Smith <colin@pfsense.org> | 2005-07-14 04:32:00 +0000 |
commit | 62624f215a2209e8459629033fae5e3cf1eb4919 (patch) | |
tree | 58f17c42ed900b69391152f51024fb968c9facf7 /etc | |
parent | f36d4bd2977b1de2c30db745ccaa46aff9c6a8a9 (diff) | |
download | pfsense-62624f215a2209e8459629033fae5e3cf1eb4919.zip pfsense-62624f215a2209e8459629033fae5e3cf1eb4919.tar.gz |
Use exec() instead of backticks.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 4fdf3bc..1407ab1 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -59,7 +59,7 @@ function log_error($error) { * $mac - the mac address of the interface ******/ function get_interface_mac_address($interface) { - $mac = `ifconfig ' . $interface . ' | grep ether | cut -d" " -f 2`; + $mac = exec('ifconfig ' . $interface . ' | grep ether | cut -d" " -f 2'); $mac = str_replace("\n", "", $mac); $mac = str_replace("\r", "", $mac); return $mac; |