Commit bed1ede1 authored by Anel Husakovic's avatar Anel Husakovic Committed by Sergei Golubchik

MDEV-19015: mysql_plugin doesn't read all server option groups

Closes #1262
parent 9ca3571c
...@@ -321,7 +321,7 @@ static int get_default_values() ...@@ -321,7 +321,7 @@ static int get_default_values()
int ret= 0; int ret= 0;
FILE *file= 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))) if ((error= find_tool("my_print_defaults" FN_EXEEXT, tool_path)))
goto exit; goto exit;
else else
...@@ -334,9 +334,9 @@ static int get_default_values() ...@@ -334,9 +334,9 @@ static int get_default_values()
char *format_str= 0; char *format_str= 0;
if (has_spaces(tool_path) || has_spaces(defaults_file)) if (has_spaces(tool_path) || has_spaces(defaults_file))
format_str = "\"%s mysqld > %s\""; format_str = "\"%s --mysqld > %s\"";
else else
format_str = "%s mysqld > %s"; format_str = "%s --mysqld > %s";
snprintf(defaults_cmd, sizeof(defaults_cmd), format_str, snprintf(defaults_cmd, sizeof(defaults_cmd), format_str,
add_quotes(tool_path), add_quotes(defaults_file)); add_quotes(tool_path), add_quotes(defaults_file));
...@@ -347,7 +347,7 @@ static int get_default_values() ...@@ -347,7 +347,7 @@ static int get_default_values()
} }
#else #else
snprintf(defaults_cmd, sizeof(defaults_cmd), snprintf(defaults_cmd, sizeof(defaults_cmd),
"%s mysqld > %s", tool_path, defaults_file); "%s --mysqld > %s", tool_path, defaults_file);
#endif #endif
/* Execute the command */ /* Execute the command */
......
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