summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorsasha@mysql.sashanet.com <>2001-01-19 12:13:06 -0700
committersasha@mysql.sashanet.com <>2001-01-19 12:13:06 -0700
commit45fa68611af37c2c474371645a1d4ccf2f97d1b3 (patch)
tree8b7e6ca26dc60143ddbc2148c3d8402c3973973e /sql
parentf433ec1247c521bd5784a45655e41ddbfa483cce (diff)
parent99fa5361c46b5a89280bee7a81e6ebca62d0e6ba (diff)
downloadmariadb-git-45fa68611af37c2c474371645a1d4ccf2f97d1b3.tar.gz
Merge work:/home/bk/mysql
into mysql.sashanet.com:/home/sasha/src/bk/mysql
Diffstat (limited to 'sql')
-rw-r--r--sql/sql_acl.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_acl.cc b/sql/sql_acl.cc
index 85d57914c78..2317c896dfd 100644
--- a/sql/sql_acl.cc
+++ b/sql/sql_acl.cc
@@ -781,8 +781,8 @@ bool change_password(THD *thd, const char *host, const char *user,
length=(uint) strlen(new_password);
new_password[length & 16]=0;
- if (!thd || strcmp(thd->user,user) ||
- my_strcasecmp(host,thd->host ? thd->host : thd->ip))
+ if (!thd || (!thd->slave_thread && ( strcmp(thd->user,user) ||
+ my_strcasecmp(host,thd->host ? thd->host : thd->ip))))
{
if (check_access(thd, UPDATE_ACL, "mysql",0,1))
return 1;