diff options
author | unknown <mtaylor@qualinost.(none)> | 2006-12-15 12:34:36 -0800 |
---|---|---|
committer | unknown <mtaylor@qualinost.(none)> | 2006-12-15 12:34:36 -0800 |
commit | 8257db67f3836ce8fbab314c3c2b775127585e86 (patch) | |
tree | 3f731c7641f9ecf2d893f9c009c9ad6b1de6bb2b /mysys | |
parent | 58b4c4bf1d88f8f3b9617362d9a564e6de2c3276 (diff) | |
download | mariadb-git-8257db67f3836ce8fbab314c3c2b775127585e86.tar.gz |
Added /etc/mysql to my.cnf search path after /etc.
bug #25104
mysys/default.c:
Added /etc/mysql to the search path after /etc.
scripts/mysqld_multi.sh:
Added /etc/mysql to the my.cnf search path.
Changed chop to chomp - since it's smarter.
Diffstat (limited to 'mysys')
-rw-r--r-- | mysys/default.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/mysys/default.c b/mysys/default.c index d93f4135e73..a147163e938 100644 --- a/mysys/default.c +++ b/mysys/default.c @@ -979,10 +979,11 @@ static uint my_get_system_windows_directory(char *buffer, uint size) Everywhere else, this is: 1. /etc/ - 2. getenv(DEFAULT_HOME_ENV) - 3. "" - 4. "~/" - 5. --sysconfdir=<path> + 2. /etc/mysql/ + 3. getenv(DEFAULT_HOME_ENV) + 4. "" + 5. "~/" + 6. --sysconfdir=<path> */ @@ -1008,6 +1009,7 @@ static void init_default_directories() *ptr++= env; #endif *ptr++= "/etc/"; + *ptr++= "/etc/mysql/"; #endif if ((env= getenv(STRINGIFY_ARG(DEFAULT_HOME_ENV)))) *ptr++= env; |