summaryrefslogtreecommitdiff
path: root/mysys
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2017-01-10 14:30:11 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2017-01-10 14:30:11 +0200
commit5044dae239d094582879792de7a762d3428223ce (patch)
treede7baaf095317ab19949f4e7fa205cf9dce44ab8 /mysys
parent4b05d60e62ef6e21d5329a9667813df890034ff0 (diff)
parent78e6fafcaa93bdd2cf793a82a812137eb7a779a7 (diff)
downloadmariadb-git-5044dae239d094582879792de7a762d3428223ce.tar.gz
Merge 10.0 into 10.1
Diffstat (limited to 'mysys')
-rw-r--r--mysys/my_default.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/mysys/my_default.c b/mysys/my_default.c
index 7f41551f779..684373a942b 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;
@@ -1218,7 +1218,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