From 10026bb62ebb7ecdfcfcc5bf7538361212ec8df2 Mon Sep 17 00:00:00 2001
From: Daniel Stenberg <daniel@haxx.se>
Date: Mon, 3 Feb 2003 22:15:33 +0000
Subject: [PATCH] scan through the PATH as well, to find stunnel

---
 tests/stunnel.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/stunnel.pm b/tests/stunnel.pm
index d1b9d9fd9b..991fe1e1af 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";
-- 
GitLab