Commit 77606a61 authored by unknown's avatar unknown

Fixed Bug#7043, "SHOW CREATE TABLE security hole".

parent 124696cf
......@@ -2600,7 +2600,9 @@ mysql_execute_command(THD *thd)
check_access(thd, SELECT_ACL | EXTRA_ACL, tables->db,
&tables->grant.privilege,0,0))
goto error;
res = mysqld_show_create(thd, tables);
if (grant_option && check_grant(thd, SELECT_ACL, tables, 2, UINT_MAX, 0))
goto error;
res= mysqld_show_create(thd, tables);
break;
}
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment