Bug #50337 | --defaults-file=~/something doesn't work anymore | ||
---|---|---|---|
Submitted: | 14 Jan 2010 15:48 | Modified: | 7 Mar 2010 1:13 |
Reporter: | Guilhem Bichot | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Options | Severity: | S3 (Non-critical) |
Version: | 5.5.99-m3 | OS: | Linux (64) |
Assigned to: | Marc ALFF | CPU Architecture: | Any |
Tags: | regression |
[14 Jan 2010 15:48]
Guilhem Bichot
[18 Jan 2010 9:01]
Sveta Smirnova
Thank you for the report. Verified as described.
[25 Jan 2010 18:00]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/98109 2974 Marc Alff 2010-01-25 Bug#50337 --defaults-file=~/something doesn't work anymore Before this fix, opening a configuration file located under "~" failed. To evaluate the "~" path, home_dir needs to be initialized. The 'home_dir' variable was initialized too late in my_init(). This fix: - moved the home_dir initialization from my_init() to my_basic_init(), using getenv("HOME")) - moved the initialization of my_umask / my_umask_dir also to my_basic_init(), to have all the my_umask / my_umask_dir init code in the same place. The second part is not strictly required, but makes the code more maintainable. Tested the fix manually. No MTR tests added, because MTR should not access or modify the $HOME directory of the user running tests.
[26 Jan 2010 3:53]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/98139 2974 Marc Alff 2010-01-25 Bug#50337 --defaults-file=~/something doesn't work anymore Before this fix, opening a configuration file located under "~" failed. To evaluate the "~" path, home_dir needs to be initialized. The 'home_dir' variable was initialized too late in my_init(). This fix: - moved the home_dir initialization from my_init() to my_basic_init(), using getenv("HOME")) - moved the initialization of my_umask / my_umask_dir also to my_basic_init(), to have all the my_umask / my_umask_dir init code in the same place. The second part is not strictly required, but makes the code more maintainable. Tested the fix manually. No MTR tests added, because MTR should not access or modify the $HOME directory of the user running tests.
[26 Jan 2010 21:31]
Marc ALFF
Patch queued in: - mysql-next-mr-marc - mysql-6.0-codebase-marc
[3 Feb 2010 16:11]
Marc ALFF
See related Bug#50880
[13 Feb 2010 8:37]
Bugs System
Pushed into 6.0.14-alpha (revid:alik@sun.com-20100213083436-9pesg4h55w1mekxc) (version source revid:luis.soares@sun.com-20100211135109-t63avry9fqpgyh78) (merge vers: 6.0.14-alpha) (pib:16)
[13 Feb 2010 8:39]
Bugs System
Pushed into mysql-next-mr (revid:alik@sun.com-20100213083327-cee4ao3jpg33eggv) (version source revid:luis.soares@sun.com-20100211135018-1f9dbghg0itszigo) (pib:16)
[13 Feb 2010 13:19]
Marc ALFF
Doc team: - regression introduced in mysql-next-mr (betony) - fixed in mysql-next-mr (celosia) Never affected a GA version.
[13 Feb 2010 17:55]
Paul DuBois
No changelog entry needed. Did not appear in any released version. Setting report to Need Merge pending push of Celosia to release tree.
[6 Mar 2010 11:03]
Bugs System
Pushed into 5.5.3-m3 (revid:alik@sun.com-20100306103849-hha31z2enhh7jwt3) (version source revid:vvaintroub@mysql.com-20100213160132-nx1vlocxuta76txh) (merge vers: 5.5.99-m3) (pib:16)
[7 Mar 2010 1:13]
Paul DuBois
No changelog entry needed.