aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2008-08-12 07:21:39 +0000
committerDaniel Stenberg <daniel@haxx.se>2008-08-12 07:21:39 +0000
commit14a5596346037a4b772bbb5d42a884943dc25a05 (patch)
tree241c0b15e2d0c36636e331c08c4cc08f0c3a2a40 /tests
parent2eba5f33b9fbf59fa1a16f804c7a4acf0e24afdb (diff)
- Andy Tsouladze fixed runtests.pl to not attempt to execute the stunnel
_directory_ if that happened to appear in the path!
Diffstat (limited to 'tests')
-rwxr-xr-xtests/runtests.pl3
1 files changed, 2 insertions, 1 deletions
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";
}
}