Bug #288 | Problem with database privilege | ||
---|---|---|---|
Submitted: | 14 Apr 2003 9:37 | Modified: | 14 Apr 2003 9:38 |
Reporter: | SINISA MILIVOJEVIC | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 3.23 and up | OS: | Any (ALL) |
Assigned to: | CPU Architecture: | Any |
[14 Apr 2003 9:37]
SINISA MILIVOJEVIC
[14 Apr 2003 9:38]
MySQL Verification Team
Fixed in 4.0.13. This is a patch: ===== sql/sql_parse.cc 1.306 vs edited ===== *** /tmp/sql_parse.cc-1.306-12654 Tue Apr 8 08:35:10 2003 --- edited/sql/sql_parse.cc Mon Apr 14 19:11:11 2003 *************** *** 2550,2556 **** if ((thd->master_access & want_access) == want_access) { ! *save_priv=thd->master_access; DBUG_RETURN(FALSE); } if (((want_access & ~thd->master_access) & ~(DB_ACLS | EXTRA_ACL)) || --- 2550,2556 ---- if ((thd->master_access & want_access) == want_access) { ! *save_priv=thd->master_access | thd->db_access; DBUG_RETURN(FALSE); } if (((want_access & ~thd->master_access) & ~(DB_ACLS | EXTRA_ACL)) ||