summaryrefslogtreecommitdiff
path: root/libmysqld
diff options
context:
space:
mode:
authorserg@serg.mylan <>2003-04-29 15:11:45 +0200
committerserg@serg.mylan <>2003-04-29 15:11:45 +0200
commit2f45dd04a051be2bb58323df15e2881d834b91de (patch)
tree95bce0bcb447194e46b2af03193acfbc5a8407f8 /libmysqld
parentdcce21e03a88d5d5b17eaf2018c49ce692f1a749 (diff)
downloadmariadb-git-2f45dd04a051be2bb58323df15e2881d834b91de.tar.gz
followup to CURRENT_USER() fix
Diffstat (limited to 'libmysqld')
-rw-r--r--libmysqld/lib_sql.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/libmysqld/lib_sql.cc b/libmysqld/lib_sql.cc
index 641fd2bb2c1..4e85c29c2f2 100644
--- a/libmysqld/lib_sql.cc
+++ b/libmysqld/lib_sql.cc
@@ -225,7 +225,8 @@ static bool check_user(THD *thd,enum_server_command command, const char *user,
return 1;
}
thd->master_access=acl_getroot(thd, thd->host, thd->ip, thd->user,
- passwd, thd->scramble, &thd->priv_user,
+ passwd, thd->scramble,
+ &thd->priv_user, &thd->priv_host,
protocol_version == 9 ||
!(thd->client_capabilities &
CLIENT_LONG_PASSWORD),&ur);