mirror of
https://github.com/MariaDB/server.git
synced 2025-09-06 19:08:06 +03:00
more merge fixes
This commit is contained in:
@@ -124,7 +124,7 @@ int my_search_option_files(const char *conf_file, int *argc, char ***argv,
|
|||||||
if (forced_default_file)
|
if (forced_default_file)
|
||||||
{
|
{
|
||||||
if ((error= search_default_file_with_ext(func, func_ctx, "", "",
|
if ((error= search_default_file_with_ext(func, func_ctx, "", "",
|
||||||
forced_default_file)) < 0)
|
forced_default_file, 0)) < 0)
|
||||||
goto err;
|
goto err;
|
||||||
if (error > 0)
|
if (error > 0)
|
||||||
{
|
{
|
||||||
@@ -439,7 +439,7 @@ static int search_default_file_with_ext(Process_option_func opt_handler,
|
|||||||
int recursion_level)
|
int recursion_level)
|
||||||
{
|
{
|
||||||
char name[FN_REFLEN + 10], buff[4096], curr_gr[4096], *ptr, *end, **tmp_ext;
|
char name[FN_REFLEN + 10], buff[4096], curr_gr[4096], *ptr, *end, **tmp_ext;
|
||||||
char *value, option[4096];
|
char *value, option[4096], tmp[FN_REFLEN];
|
||||||
static const char includedir_keyword[]= "includedir";
|
static const char includedir_keyword[]= "includedir";
|
||||||
static const char include_keyword[]= "include";
|
static const char include_keyword[]= "include";
|
||||||
const int max_recursion_level= 10;
|
const int max_recursion_level= 10;
|
||||||
@@ -548,14 +548,10 @@ static int search_default_file_with_ext(Process_option_func opt_handler,
|
|||||||
|
|
||||||
if (*tmp_ext)
|
if (*tmp_ext)
|
||||||
{
|
{
|
||||||
if (!(tmp= alloc_root(alloc, 2 + strlen(search_file->name)
|
|
||||||
+ strlen(ptr))))
|
|
||||||
goto err;
|
|
||||||
|
|
||||||
fn_format(tmp, search_file->name, ptr, "",
|
fn_format(tmp, search_file->name, ptr, "",
|
||||||
MY_UNPACK_FILENAME | MY_SAFE_PATH);
|
MY_UNPACK_FILENAME | MY_SAFE_PATH);
|
||||||
|
|
||||||
search_default_file_with_ext(args, alloc, "", "", tmp, group,
|
search_default_file_with_ext(opt_handler, handler_ctx, "", "", tmp,
|
||||||
recursion_level + 1);
|
recursion_level + 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -585,7 +581,7 @@ static int search_default_file_with_ext(Process_option_func opt_handler,
|
|||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
||||||
search_default_file_with_ext(args, alloc, "", "", ptr, group,
|
search_default_file_with_ext(opt_handler, handler_ctx, "", "", ptr,
|
||||||
recursion_level + 1);
|
recursion_level + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user