diff --git a/tests/stunnel.pm b/tests/stunnel.pm index d1b9d9fd9..991fe1e1a 100644 --- a/tests/stunnel.pm +++ b/tests/stunnel.pm @@ -1,6 +1,6 @@ sub checkstunnel { my @paths=("/usr/sbin", "/usr/local/sbin", "/sbin", "/usr/bin", - "/usr/local/bin"); + "/usr/local/bin", split(":", $ENV{'PATH'})); for(@paths) { if( -x "$_/stunnel") { return "$_/stunnel";