diff options
Diffstat (limited to 'databases/mysql80-server/files/patch-mysys_my__default.cc')
-rw-r--r-- | databases/mysql80-server/files/patch-mysys_my__default.cc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/databases/mysql80-server/files/patch-mysys_my__default.cc b/databases/mysql80-server/files/patch-mysys_my__default.cc index ffc76b7a8941..6a8cb5ebbaf2 100644 --- a/databases/mysql80-server/files/patch-mysys_my__default.cc +++ b/databases/mysql80-server/files/patch-mysys_my__default.cc @@ -1,15 +1,15 @@ ---- mysys/my_default.cc.orig 2019-09-20 08:30:51 UTC +--- mysys/my_default.cc.orig 2021-04-23 15:06:40 UTC +++ mysys/my_default.cc -@@ -203,7 +203,7 @@ bool no_defaults = false; +@@ -204,7 +204,7 @@ bool no_defaults = false; /* Which directories are searched for options (and in which order) */ -#define MAX_DEFAULT_DIRS 6 +#define MAX_DEFAULT_DIRS 7 #define DEFAULT_DIRS_SIZE (MAX_DEFAULT_DIRS + 1) /* Terminate with NULL */ - static const char **default_directories = NULL; + static const char **default_directories = nullptr; -@@ -909,6 +909,14 @@ static int search_default_file_with_ext(Process_option +@@ -915,6 +915,14 @@ static int search_default_file_with_ext(Process_option return 1; /* Ignore wrong files */ } @@ -21,10 +21,10 @@ + goto err; + } + - while (mysql_file_getline(buff, sizeof(buff) - 1, fp, is_login_file)) { - line++; - /* Ignore comment and empty lines */ -@@ -1228,7 +1236,8 @@ void my_print_default_files(const char *conf_file) { + while (true) { + auto fileline = mysql_file_getline(buff, sizeof(buff), fp, is_login_file); + char *linebuff = fileline.get(); +@@ -1300,7 +1308,8 @@ void my_print_default_files(const char *conf_file) { end[(strlen(end) - 1)] = ' '; else strxmov(end, conf_file, *ext, " ", NullS); @@ -34,7 +34,7 @@ } } } -@@ -1565,14 +1574,9 @@ static const char **init_default_directories(MEM_ROOT +@@ -1640,14 +1649,9 @@ static const char **init_default_directories(MEM_ROOT #else @@ -51,7 +51,7 @@ #endif if ((env = getenv("MYSQL_HOME"))) errors += add_directory(alloc, env, dirs); -@@ -1635,7 +1639,7 @@ int check_file_permissions(const char *file_name, bool +@@ -1710,7 +1714,7 @@ int check_file_permissions(const char *file_name, bool #if !defined(_WIN32) MY_STAT stat_info; |