From a18eacf13d1b159e9a4785ef0f76cfcfe3da5fee Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Mon, 3 Mar 2008 14:56:24 -0800 Subject: Use hardcoded path to ethtool For security, use hardcoded path to command. --- scripts/vyatta-identify-interface.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/vyatta-identify-interface.pl b/scripts/vyatta-identify-interface.pl index 8837652..1903d06 100644 --- a/scripts/vyatta-identify-interface.pl +++ b/scripts/vyatta-identify-interface.pl @@ -44,7 +44,7 @@ if ($cpid == 0) { # child print "Interface $intf should be blinking now.\n"; print "Press Enter to stop...\n"; - exec("ethtool -p $intf"); + exec("/usr/sbin/ethtool -p $intf"); # not reachable exit 0; } else { -- cgit v1.2.3