1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

Prevent running stunnel unless its version can be determined.

This commit is contained in:
Yang Tse 2009-11-27 13:01:10 +00:00
parent f07f17f2a4
commit 6f273b1a5f

View File

@ -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