From: Daniel Stenberg Date: Mon, 3 Feb 2003 22:15:33 +0000 (+0000) Subject: scan through the PATH as well, to find stunnel X-Git-Tag: curl-7_10_4~155 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=10026bb62ebb7ecdfcfcc5bf7538361212ec8df2;p=curl scan through the PATH as well, to find stunnel --- 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";