1
0
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:
unknown
2003-07-22 22:21:23 +02:00
parent b413e5c420
commit 1cf4eea19d
12 changed files with 85 additions and 70 deletions

View File

@ -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;
}