Commit 4ab10bce authored by ramil@mysql.com's avatar ramil@mysql.com

merge

parents a4cdb93b 8a61200b
...@@ -171,8 +171,11 @@ int load_defaults(const char *conf_file, const char **groups, ...@@ -171,8 +171,11 @@ int load_defaults(const char *conf_file, const char **groups,
{ {
if ((error= search_default_file_with_ext(&args, &alloc, "", "", if ((error= search_default_file_with_ext(&args, &alloc, "", "",
forced_default_file, forced_default_file,
&group)) < 0) &group)))
{
fprintf(stderr, "Error reading '%s' file.\n", forced_default_file);
goto err; goto err;
}
} }
else if (dirname_length(conf_file)) else if (dirname_length(conf_file))
{ {
...@@ -208,8 +211,11 @@ int load_defaults(const char *conf_file, const char **groups, ...@@ -208,8 +211,11 @@ int load_defaults(const char *conf_file, const char **groups,
else if (defaults_extra_file) else if (defaults_extra_file)
{ {
if (search_default_file(&args, &alloc, NullS, defaults_extra_file, if (search_default_file(&args, &alloc, NullS, defaults_extra_file,
&group) < 0) &group))
{
fprintf(stderr, "Error reading '%s' file.\n", defaults_extra_file);
goto err; /* Fatal error */ goto err; /* Fatal error */
}
} }
} }
} }
......
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