1
0
mirror of https://github.com/MariaDB/server.git synced 2025-09-02 09:41:40 +03:00

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

This commit is contained in:
jani@ua141d10.elisa.omakaista.fi
2004-12-07 21:57:54 +02:00
parent a017778493
commit e554642528

View File

@@ -2600,7 +2600,9 @@ unsent_create_error:
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