From 14a5596346037a4b772bbb5d42a884943dc25a05 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 12 Aug 2008 07:21:39 +0000 Subject: - Andy Tsouladze fixed runtests.pl to not attempt to execute the stunnel _directory_ if that happened to appear in the path! --- tests/runtests.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/runtests.pl') diff --git a/tests/runtests.pl b/tests/runtests.pl index de300df4d..169a347e1 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -388,7 +388,8 @@ sub checkcmd { my @paths=(split(":", $ENV{'PATH'}), "/usr/sbin", "/usr/local/sbin", "/sbin", "/usr/bin", "/usr/local/bin" ); for(@paths) { - if( -x "$_/$cmd") { + if( -x "$_/$cmd" && ! -d "$_/$cmd") { + # executable bit but not a directory! return "$_/$cmd"; } } -- cgit v1.2.3