diff options
author | Yang Tse <yangsita@gmail.com> | 2009-11-27 13:01:10 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2009-11-27 13:01:10 +0000 |
commit | 6f273b1a5fbd856b137bf4f814612664d6311832 (patch) | |
tree | 39a72032be5be0b6fb6a031369718e73db9199d3 | |
parent | f07f17f2a4f108db46ad3d92d7bd6b2739e6eea9 (diff) |
Prevent running stunnel unless its version can be determined.
-rw-r--r-- | tests/httpsserver.pl | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/httpsserver.pl b/tests/httpsserver.pl index 45eb92060..a21307df2 100644 --- a/tests/httpsserver.pl +++ b/tests/httpsserver.pl @@ -87,7 +87,13 @@ foreach my $veropt (('-version', '-V')) { my $cmd; if(!$ver_major) { - print "no stunnel or unknown version\n"; + if(-x "$stunnel" && ! -d "$stunnel") { + print "unknown stunnel version\n"; + } + else { + print "no stunnel\n"; + } + exit; } elsif($ver_major < 4) { # stunnel version less than 4.00 |