projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f07f17f
)
Prevent running stunnel unless its version can be determined.
author
Yang Tse
<yangsita@gmail.com>
Fri, 27 Nov 2009 13:01:10 +0000
(13:01 +0000)
committer
Yang Tse
<yangsita@gmail.com>
Fri, 27 Nov 2009 13:01:10 +0000
(13:01 +0000)
tests/httpsserver.pl
patch
|
blob
|
history
diff --git
a/tests/httpsserver.pl
b/tests/httpsserver.pl
index
45eb920
..
a21307d
100644
(file)
--- 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