aboutsummaryrefslogtreecommitdiff
path: root/tests/stunnel.pm
blob: 991fe1e1af6fa88e55fa33502073c7df45b4e4fc (plain)
1
2
3
4
5
6
7
8
9
10
11
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;