1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

fixed case when frivileges check switched off (BUG#4631)

This commit is contained in:
bell@sanja.is.com.ua
2004-07-20 01:01:02 +03:00
parent 3e40d59688
commit 4246f40065
6 changed files with 30 additions and 4 deletions

View File

@ -3838,6 +3838,11 @@ void fill_effective_table_privileges(THD *thd, GRANT_INFO *grant,
{
/* global privileges */
grant->privilege= thd->master_access;
/* if privileges ignored (--skip-grant-tables) above is enough */
if (!grant_option)
return;
/* db privileges */
grant->privilege|= acl_get(thd->host, thd->ip, thd->priv_user, db, 0);
/* table privileges */