From 2cac8f07682491c20b0419cbdb4fe5b164472094 Mon Sep 17 00:00:00 2001 From: "serg@serg.mylan" <> Date: Tue, 22 Jul 2003 22:21:23 +0200 Subject: now GRANT db.* ... compares patterns correctly to prevent privilege escalation --- sql/sql_base.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sql/sql_base.cc') diff --git a/sql/sql_base.cc b/sql/sql_base.cc index 641ab46e5e0..43368fe5433 100644 --- a/sql/sql_base.cc +++ b/sql/sql_base.cc @@ -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; } -- cgit v1.2.1