1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

Bug #473 - GRANT ... TO ''@... was requiring FLUSH PRIVILEGES to work

This commit is contained in:
serg@serg.mylan
2003-07-21 13:46:57 +02:00
parent cb310f763a
commit 716e91eecb

View File

@@ -725,7 +725,7 @@ static void acl_insert_user(const char *user, const char *host,
ulong privileges)
{
ACL_USER acl_user;
acl_user.user=strdup_root(&mem,user);
acl_user.user=*user ? strdup_root(&mem,user) : 0;
update_hostname(&acl_user.host,strdup_root(&mem,host));
acl_user.password=0;
acl_user.access=privileges;