mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
now GRANT db.* ... compares patterns correctly to prevent privilege escalation
This commit is contained in:
@ -148,7 +148,7 @@ OPEN_TABLE_LIST *list_open_tables(THD *thd, const char *wild)
|
||||
if (wild)
|
||||
{
|
||||
strxmov(name,entry->table_cache_key,".",entry->real_name,NullS);
|
||||
if (wild_compare(name,wild))
|
||||
if (wild_compare(name,wild,0))
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user