mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Don't give the anonymous user create temp table or lock tables privileges.
SET PASSWORD=... closed connection on error.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user