diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2010-04-14 23:07:12 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2010-04-14 23:07:12 +0000 |
commit | 45078e6c52cb183bc21dd31b0003744b1eae963a (patch) | |
tree | 61455715a6a9d13ee5f5fe8ccf56877906a5fca7 /tools | |
parent | d7f573fea601a3e0f8a689c5bc1f0fe4597c3bfd (diff) | |
download | openssl-45078e6c52cb183bc21dd31b0003744b1eae963a.zip openssl-45078e6c52cb183bc21dd31b0003744b1eae963a.tar.gz openssl-45078e6c52cb183bc21dd31b0003744b1eae963a.tar.bz2 |
PR: 2234
Submitted By: Matthias Andree <matthias.andree@gmx.de>
Use correct path to openssl utility in c_rehash script.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/c_rehash.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/c_rehash.in b/tools/c_rehash.in index 6dd3c24..bfc4a69 100644 --- a/tools/c_rehash.in +++ b/tools/c_rehash.in @@ -7,6 +7,7 @@ my $openssl; my $dir; +my $prefix; if(defined $ENV{OPENSSL}) { $openssl = $ENV{OPENSSL}; @@ -24,7 +25,7 @@ if (defined(&Cwd::getcwd)) { } my $path_delim = ($pwd =~ /^[a-z]\:/i) ? ';' : ':'; # DOS/Win32 or Unix delimiter? -$ENV{PATH} .= "$path_delim$dir/bin"; +$ENV{PATH} = "$prefix/bin" . ($ENV{PATH} ? $path_delim . $ENV{PATH} : ""); # prefix our path if(! -x $openssl) { my $found = 0; |