diff options
author | unknown <monty@mashka.mysql.fi> | 2002-09-22 18:02:39 +0300 |
---|---|---|
committer | unknown <monty@mashka.mysql.fi> | 2002-09-22 18:02:39 +0300 |
commit | 92dd03932df128eed8164bc3c85e7c9d3306e77b (patch) | |
tree | 7f6749bdfc76c04b8808fc36f0afc50291749ae8 /sql/sql_acl.cc | |
parent | 6546f36e2d8378f224114b88cae3806684990162 (diff) | |
download | mariadb-git-92dd03932df128eed8164bc3c85e7c9d3306e77b.tar.gz |
Don't give the anonymous user create temp table or lock tables privileges.
SET PASSWORD=... closed connection on error.
Docs/manual.texi:
Changelog
mysql-test/r/rpl_rotate_logs.result:
Fixed test
scripts/mysql_fix_privilege_tables.sh:
Don't give the anonymous user create temp table or lock tables privileges.
sql/set_var.cc:
SET PASSWORD=... closed connection on error, because MySQL sent the error message twice.
sql/set_var.h:
SET PASSWORD=... closed connection on error, because MySQL sent the error message twice.
sql/sql_acl.cc:
Added function comment
sql/sql_db.cc:
Change type of variable
sql/sql_parse.cc:
SET PASSWORD=... closed connection on error, because MySQL sent the error message twice.
tests/grant.pl:
Updated grant test case to work with latest MySQL version
tests/grant.res:
updated test results
Diffstat (limited to 'sql/sql_acl.cc')
-rw-r--r-- | sql/sql_acl.cc | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/sql/sql_acl.cc b/sql/sql_acl.cc index 0705762e311..2113404446f 100644 --- a/sql/sql_acl.cc +++ b/sql/sql_acl.cc @@ -783,7 +783,6 @@ ulong acl_get(const char *host, const char *ip, const char *bin_ip, db_access=0; host_access= ~0; char key[ACL_KEY_LENGTH],*tmp_db,*end; acl_entry *entry; - THD *thd= current_thd; VOID(pthread_mutex_lock(&acl_cache->lock)); memcpy_fixed(&key,bin_ip,sizeof(struct in_addr)); @@ -1015,6 +1014,21 @@ bool check_change_password(THD *thd, const char *host, const char *user) } +/* + Change a password for a user + + SYNOPSIS + change_password() + thd Thread handle + host Hostname + user User name + new_password New password for host@user + + RETURN VALUES + 0 ok + 1 ERROR; In this case the error is sent to the client. +*/ + bool change_password(THD *thd, const char *host, const char *user, char *new_password) { |