[CONC-416] On Windows, C/C looks for first my.cnf/my.ini in GetSystemDirectory() instead of GetSystemWindowsDirectory() Created: 2019-06-01 Updated: 2019-06-03 Resolved: 2019-06-03 |
|
| Status: | Closed |
| Project: | MariaDB Connector/C |
| Component/s: | None |
| Affects Version/s: | 3.0.8, 3.1.0 |
| Fix Version/s: | 3.1.1 |
| Type: | Bug | Priority: | Major |
| Reporter: | Geoff Montee (Inactive) | Assignee: | Georg Richter |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||||||||||
| Description |
|
On Windows, MariaDB Connector/C looks for its first my.cnf/my.ini directory by calling GetSystemDirectory(): https://github.com/MariaDB/mariadb-connector-c/blob/v3.1.0/libmariadb/ma_default.c#L89 https://docs.microsoft.com/en-us/windows/desktop/api/sysinfoapi/nf-sysinfoapi-getsystemdirectorya In contrast, on Windows, MariaDB Server looks for its first my.cnf/my.ini directory by calling GetSystemWindowsDirectory(): https://github.com/MariaDB/server/blob/mariadb-10.4.5/mysys/my_default.c#L1177 |
| Comments |
| Comment by Georg Richter [ 2019-06-03 ] |
|
commit dfa8b03c602efc4f695d2953786f3cf13c8861b6 (HEAD -> 3.1, origin/HEAD, origin/3.1) Changed order for lookup configuration files on Windows: |