Fixed Bug#9834, "mysqld_multi --config-file parameter requires

absolute path".
This commit is contained in:
jani@ua141d10.elisa.omakaista.fi 2005-04-26 17:46:43 +03:00
parent d4d0f9c126
commit c98b90bbfb

View File

@ -66,6 +66,11 @@ sub main
else else
{ {
$opt_config_file= $1; $opt_config_file= $1;
if (!($opt_config_file =~ m/\//))
{
# No path. Use current working directory
$opt_config_file= "./" . $opt_config_file;
}
} }
} }
} }
@ -82,7 +87,11 @@ sub main
{ {
$flag_exit= 1; $flag_exit= 1;
} }
if (!($opt_config_file =~ m/\//))
{
# No path. Use current working directory
$opt_config_file= "./" . $opt_config_file;
}
usage() if ($opt_help); usage() if ($opt_help);
if ($opt_verbose && $opt_silent) if ($opt_verbose && $opt_silent)