diff options
author | Sergei Golubchik <serg@mariadb.org> | 2018-08-02 22:28:04 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2018-09-04 08:31:46 +0200 |
commit | 14ddcb1ff27dbb7248c63a01756852404b6d5209 (patch) | |
tree | dc241a7819e60a72e7176c38ed78156928acf03b /sql/sql_acl.cc | |
parent | 43c393ff4732e9ea8719864abeb73cefd5b528a9 (diff) | |
download | mariadb-git-14ddcb1ff27dbb7248c63a01756852404b6d5209.tar.gz |
Bug#27407480: AUTOMATIC_SP_PRIVILEGES REQUIRES NEED THE INSERT PRIVILEGES FOR MYSQL.USER TABLE
A test case and a followup fix
Diffstat (limited to 'sql/sql_acl.cc')
-rw-r--r-- | sql/sql_acl.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_acl.cc b/sql/sql_acl.cc index 24740a0695a..066e7e4c7f4 100644 --- a/sql/sql_acl.cc +++ b/sql/sql_acl.cc @@ -7190,7 +7190,7 @@ bool sp_grant_privileges(THD *thd, const char *sp_db, const char *sp_name, mysql_mutex_lock(&acl_cache->lock); if ((au= find_acl_user(combo->host.str= (char *) sctx->priv_host, - combo->user.str, FALSE))) + combo->user.str, TRUE))) goto found_acl; mysql_mutex_unlock(&acl_cache->lock); |