curl/tests/stunnel.pm
2003-02-03 22:15:33 +00:00

12 lines
251 B
Perl

sub checkstunnel {
my @paths=("/usr/sbin", "/usr/local/sbin", "/sbin", "/usr/bin",
"/usr/local/bin", split(":", $ENV{'PATH'}));
for(@paths) {
if( -x "$_/stunnel") {
return "$_/stunnel";
}
}
}
1;