mirror of
https://github.com/MariaDB/server.git
synced 2025-08-05 13:16:09 +03:00
Merge branch '10.1' into 10.2
This commit is contained in:
@@ -322,7 +322,7 @@ static int get_default_values()
|
||||
int ret= 0;
|
||||
FILE *file= 0;
|
||||
|
||||
bzero(tool_path, FN_REFLEN);
|
||||
memset(tool_path, 0, FN_REFLEN);
|
||||
if ((error= find_tool("my_print_defaults" FN_EXEEXT, tool_path)))
|
||||
goto exit;
|
||||
else
|
||||
@@ -335,9 +335,9 @@ static int get_default_values()
|
||||
char *format_str= 0;
|
||||
|
||||
if (has_spaces(tool_path) || has_spaces(defaults_file))
|
||||
format_str = "\"%s mysqld > %s\"";
|
||||
format_str = "\"%s --mysqld > %s\"";
|
||||
else
|
||||
format_str = "%s mysqld > %s";
|
||||
format_str = "%s --mysqld > %s";
|
||||
|
||||
snprintf(defaults_cmd, sizeof(defaults_cmd), format_str,
|
||||
add_quotes(tool_path), add_quotes(defaults_file));
|
||||
@@ -348,7 +348,7 @@ static int get_default_values()
|
||||
}
|
||||
#else
|
||||
snprintf(defaults_cmd, sizeof(defaults_cmd),
|
||||
"%s mysqld > %s", tool_path, defaults_file);
|
||||
"%s --mysqld > %s", tool_path, defaults_file);
|
||||
#endif
|
||||
|
||||
/* Execute the command */
|
||||
|
Reference in New Issue
Block a user