diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2010-04-14 23:07:28 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2010-04-14 23:07:28 +0000 |
commit | 8d9db418804700d9e6368122b3468db1cea4da07 (patch) | |
tree | 50416edfbc1312bf654403bde2511c393681010a /tools | |
parent | 4fae54a8e003fa415407a748f14184111af59dd2 (diff) | |
download | openssl-new-8d9db418804700d9e6368122b3468db1cea4da07.tar.gz |
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 6dd3c24fc1..bfc4a69ed4 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; |