summaryrefslogtreecommitdiff
path: root/libmysqld
diff options
context:
space:
mode:
authorunknown <hf@deer.(none)>2003-12-12 18:00:54 +0400
committerunknown <hf@deer.(none)>2003-12-12 18:00:54 +0400
commit86f62a543c1ed8e6c7bcfcf52284aef0418ac3af (patch)
treea97f43ba3a0106fcf1a0c48960c8393203f5babd /libmysqld
parentd0f757c063f3bc16ee56d39c88bb371ddfdfd7d7 (diff)
downloadmariadb-git-86f62a543c1ed8e6c7bcfcf52284aef0418ac3af.tar.gz
Fix for #1224 in 4.0
we didn't specify thd->priv_host properly libmysqld/lib_sql.cc: Specifying of thd->priv_host added
Diffstat (limited to 'libmysqld')
-rw-r--r--libmysqld/lib_sql.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/libmysqld/lib_sql.cc b/libmysqld/lib_sql.cc
index d33f384f81e..03e3c1fee30 100644
--- a/libmysqld/lib_sql.cc
+++ b/libmysqld/lib_sql.cc
@@ -224,6 +224,7 @@ static bool check_user(THD *thd,enum_server_command command, const char *user,
send_error(net,ER_OUT_OF_RESOURCES);
return 1;
}
+ strcpy(thd->priv_host, LOCAL_HOST);
thd->master_access=acl_getroot(thd, thd->host, thd->ip, thd->user,
passwd, thd->scramble,
&thd->priv_user, thd->priv_host,