Commit 510d5f14 authored by msvensson@shellback.(none)'s avatar msvensson@shellback.(none)

Merge shellback.(none):/home/msvensson/mysql/mysql-5.0

into  shellback.(none):/home/msvensson/mysql/mysql-5.0-maint
parents da60a519 55165b2f
...@@ -83,7 +83,14 @@ sub mtr_path_exists (@) { ...@@ -83,7 +83,14 @@ sub mtr_path_exists (@) {
sub mtr_script_exists (@) { sub mtr_script_exists (@) {
foreach my $path ( @_ ) foreach my $path ( @_ )
{ {
return $path if -x $path; if($::glob_win32)
{
return $path if -f $path;
}
else
{
return $path if -x $path;
}
} }
if ( @_ == 1 ) if ( @_ == 1 )
{ {
...@@ -108,7 +115,14 @@ sub mtr_exe_exists (@) { ...@@ -108,7 +115,14 @@ sub mtr_exe_exists (@) {
map {$_.= ".exe"} @path if $::glob_win32; map {$_.= ".exe"} @path if $::glob_win32;
foreach my $path ( @path ) foreach my $path ( @path )
{ {
return $path if -x $path; if($::glob_win32)
{
return $path if -f $path;
}
else
{
return $path if -x $path;
}
} }
if ( @path == 1 ) if ( @path == 1 )
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment