mirror of
https://github.com/curl/curl.git
synced 2026-07-24 10:57:16 +03:00
Prevent running stunnel unless its version can be determined.
This commit is contained in:
parent
f07f17f2a4
commit
6f273b1a5f
1 changed files with 7 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue