Lines 1-6
Link Here
|
1 |
--- mysys_ssl/my_default.cc.orig 2016-03-28 18:06:12 UTC |
1 |
--- mysys_ssl/my_default.cc.orig 2016-08-25 11:52:06 UTC |
2 |
+++ mysys_ssl/my_default.cc |
2 |
+++ mysys_ssl/my_default.cc |
3 |
@@ -122,7 +122,7 @@ static my_bool is_login_file= FALSE; |
3 |
@@ -114,7 +114,7 @@ static my_bool defaults_already_read= FA |
4 |
|
4 |
|
5 |
/* Which directories are searched for options (and in which order) */ |
5 |
/* Which directories are searched for options (and in which order) */ |
6 |
|
6 |
|
Lines 9-15
Link Here
|
9 |
#define DEFAULT_DIRS_SIZE (MAX_DEFAULT_DIRS + 1) /* Terminate with NULL */ |
9 |
#define DEFAULT_DIRS_SIZE (MAX_DEFAULT_DIRS + 1) /* Terminate with NULL */ |
10 |
static const char **default_directories = NULL; |
10 |
static const char **default_directories = NULL; |
11 |
|
11 |
|
12 |
@@ -909,6 +909,14 @@ |
12 |
@@ -914,6 +914,14 @@ static int search_default_file_with_ext( |
13 |
return 1; /* Ignore wrong files */ |
13 |
return 1; /* Ignore wrong files */ |
14 |
} |
14 |
} |
15 |
|
15 |
|
Lines 21-30
Link Here
|
21 |
+ goto err; |
21 |
+ goto err; |
22 |
+ } |
22 |
+ } |
23 |
+ |
23 |
+ |
24 |
while (mysql_file_getline(buff, sizeof(buff) - 1, fp)) |
24 |
while (mysql_file_getline(buff, sizeof(buff) - 1, fp, is_login_file)) |
25 |
{ |
25 |
{ |
26 |
line++; |
26 |
line++; |
27 |
@@ -1245,7 +1253,8 @@ |
27 |
@@ -1252,7 +1260,8 @@ void my_print_default_files(const char * |
28 |
end[(strlen(end)-1)] = ' '; |
28 |
end[(strlen(end)-1)] = ' '; |
29 |
else |
29 |
else |
30 |
strxmov(end, conf_file, *ext , " ", NullS); |
30 |
strxmov(end, conf_file, *ext , " ", NullS); |
Lines 34-40
Link Here
|
34 |
} |
34 |
} |
35 |
} |
35 |
} |
36 |
} |
36 |
} |
37 |
@@ -1404,13 +1413,8 @@ |
37 |
@@ -1411,13 +1420,8 @@ static const char **init_default_directo |
38 |
|
38 |
|
39 |
#else |
39 |
#else |
40 |
|
40 |
|
Lines 50-56
Link Here
|
50 |
|
50 |
|
51 |
#endif |
51 |
#endif |
52 |
|
52 |
|
53 |
@@ -1480,7 +1484,7 @@ |
53 |
@@ -1488,7 +1492,7 @@ int check_file_permissions(const char *f |
54 |
MY_STAT stat_info; |
54 |
MY_STAT stat_info; |
55 |
|
55 |
|
56 |
if (!my_stat(file_name,&stat_info,MYF(0))) |
56 |
if (!my_stat(file_name,&stat_info,MYF(0))) |