Bug #473 | Failure of GRANT to refresh grant tables | ||
---|---|---|---|
Submitted: | 21 May 2003 9:12 | Modified: | 21 Jul 2003 4:44 |
Reporter: | Paul DuBois | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 3.23.x,4.0.x,4.1.x | OS: | Unix, at least |
Assigned to: | Sergei Glukhov | CPU Architecture: | Any |
[21 May 2003 9:12]
Paul DuBois
[2 Jun 2003 6:02]
Sergei Glukhov
Here is the suggested fix for 4.0.x ===== sql/sql_acl.cc 1.97 vs edited ===== *** /tmp/sql_acl.cc-1.97-24212 Thu May 8 02:00:38 2003 --- edited/sql/sql_acl.cc Mon Jun 2 17:52:04 2003 *************** *** 515,521 **** for (uint i=0 ; i < acl_users.elements ; i++) { ACL_USER *acl_user=dynamic_element(&acl_users,i,ACL_USER*); ! if (!acl_user->user || !strcmp(user,acl_user->user)) { if (compare_hostname(&acl_user->host,host,ip)) { --- 515,521 ---- for (uint i=0 ; i < acl_users.elements ; i++) { ACL_USER *acl_user=dynamic_element(&acl_users,i,ACL_USER*); ! if (!acl_user->user || !acl_user->user[0] || !strcmp(user,acl_user->user)) { if (compare_hostname(&acl_user->host,host,ip)) {
[21 Jul 2003 4:44]
Sergei Golubchik
fixed in 4.0.15