Find openssl utility if on the PATH.
[openssl.git] / tools / c_rehash.in
index 96a73aeedd835c220d41053322770e8ec2b05b3f..6dd3c24fc1558c4959763a6ecd7d0e73cb51fada 100644 (file)
@@ -31,6 +31,7 @@ if(! -x $openssl) {
        foreach (split /$path_delim/, $ENV{PATH}) {
                if(-x "$_/$openssl") {
                        $found = 1;
        foreach (split /$path_delim/, $ENV{PATH}) {
                if(-x "$_/$openssl") {
                        $found = 1;
+                       $openssl = "$_/$openssl";
                        last;
                }       
        }
                        last;
                }       
        }