]> granicus.if.org Git - curl/commitdiff
scan through the PATH as well, to find stunnel
authorDaniel Stenberg <daniel@haxx.se>
Mon, 3 Feb 2003 22:15:33 +0000 (22:15 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 3 Feb 2003 22:15:33 +0000 (22:15 +0000)
tests/stunnel.pm

index d1b9d9fd9bf9e591ca74186a6475f32177c60e1d..991fe1e1af6fa88e55fa33502073c7df45b4e4fc 100644 (file)
@@ -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";