PR: 2234
Submitted By: Matthias Andree <matthias.andree@gmx.de> Use correct path to openssl utility in c_rehash script.
This commit is contained in:
parent
4fae54a8e0
commit
8d9db41880
@ -7,6 +7,7 @@
|
|||||||
my $openssl;
|
my $openssl;
|
||||||
|
|
||||||
my $dir;
|
my $dir;
|
||||||
|
my $prefix;
|
||||||
|
|
||||||
if(defined $ENV{OPENSSL}) {
|
if(defined $ENV{OPENSSL}) {
|
||||||
$openssl = $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?
|
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) {
|
if(! -x $openssl) {
|
||||||
my $found = 0;
|
my $found = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user