summaryrefslogtreecommitdiff
path: root/sql/sql_acl.cc
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2018-08-02 22:28:04 +0200
committerSergei Golubchik <serg@mariadb.org>2018-09-04 08:31:46 +0200
commit14ddcb1ff27dbb7248c63a01756852404b6d5209 (patch)
treedc241a7819e60a72e7176c38ed78156928acf03b /sql/sql_acl.cc
parent43c393ff4732e9ea8719864abeb73cefd5b528a9 (diff)
downloadmariadb-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.cc2
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);