1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

backport wild_compare fix from 4.1 - bug#3924

This commit is contained in:
serg@serg.mylan
2004-05-29 17:52:20 +02:00
parent 1998dd786e
commit 2e1ded2fe1
9 changed files with 61 additions and 38 deletions

View File

@ -410,7 +410,7 @@ bool mysql_change_db(THD *thd,const char *name)
db_access=DB_ACLS;
else
db_access= (acl_get(thd->host,thd->ip,(char*) &thd->remote.sin_addr,
thd->priv_user,dbname) |
thd->priv_user,dbname,0) |
thd->master_access);
if (!(db_access & DB_ACLS) && (!grant_option || check_grant_db(thd,dbname)))
{