diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2017-01-10 14:39:28 +0200 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2017-01-10 14:39:28 +0200 |
commit | f27ca6f667f21b45325cc0f262f6aa632375be9a (patch) | |
tree | 124795f9fb62aa21b1d053535ac2d92fa82069b0 /mysys | |
parent | 3d46768da2a784ddc9c341d1fb03468525bd38f1 (diff) | |
parent | 5044dae239d094582879792de7a762d3428223ce (diff) | |
download | mariadb-git-f27ca6f667f21b45325cc0f262f6aa632375be9a.tar.gz |
Merge 10.1 into 10.2
Diffstat (limited to 'mysys')
-rw-r--r-- | mysys/my_default.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mysys/my_default.c b/mysys/my_default.c index a8c3c53adf6..6324c19bdda 100644 --- a/mysys/my_default.c +++ b/mysys/my_default.c @@ -90,7 +90,7 @@ static my_bool defaults_already_read= 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; @@ -1182,7 +1182,12 @@ static const char **init_default_directories(MEM_ROOT *alloc) errors += add_directory(alloc, "C:/", dirs); if (my_get_module_parent(fname_buffer, sizeof(fname_buffer)) != NULL) + { + errors += add_directory(alloc, fname_buffer, dirs); + + strncat(fname_buffer, "/data", sizeof(fname_buffer)); errors += add_directory(alloc, fname_buffer, dirs); + } } #else |