From a7a14e74ff9624d425630ad00c1d4dbf9b49ebb8 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 27 Feb 2004 14:21:16 +0000 Subject: (in_ifconfig) better check ifconfig is executable before running it (-e is not enough) --- perl-install/standalone/net_monitor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install/standalone/net_monitor') diff --git a/perl-install/standalone/net_monitor b/perl-install/standalone/net_monitor index ee4a10e92..7e323fb19 100755 --- a/perl-install/standalone/net_monitor +++ b/perl-install/standalone/net_monitor @@ -426,7 +426,7 @@ sub update() { sub in_ifconfig { my ($intf) = @_; - -e '/sbin/ifconfig' or return 1; + -x '/sbin/ifconfig' or return 1; $intf eq '' and return 1; `/sbin/ifconfig` =~ /$intf/; } -- cgit v1.2.1