summaryrefslogtreecommitdiff
path: root/sql/sql_acl.cc
diff options
context:
space:
mode:
authorunknown <kostja@bodhi.local>2006-08-30 01:48:15 +0400
committerunknown <kostja@bodhi.local>2006-08-30 01:48:15 +0400
commit3e0fcd915f5e996feb1cd475b09161954979a3ec (patch)
tree8298402369788e3a248a3cc9ce131ad3de032fc9 /sql/sql_acl.cc
parent8ea5f31a46e9edcd773a1ce3655c8ce9e0d0ed33 (diff)
downloadmariadb-git-3e0fcd915f5e996feb1cd475b09161954979a3ec.tar.gz
Remove the fix for Bug#10668 "CREATE USER does not enforce username
length limit", it's superseded by the fix for Bug#16899 "Possible buffer overflow in handling of DEFINER-clause". Update test results. mysql-test/r/grant.result: A post-merge fix. mysql-test/t/grant.test: A new error is returned, use the default database after drop database. sql/sql_acl.cc: Remove an unneeded check.
Diffstat (limited to 'sql/sql_acl.cc')
-rw-r--r--sql/sql_acl.cc8
1 files changed, 0 insertions, 8 deletions
diff --git a/sql/sql_acl.cc b/sql/sql_acl.cc
index 6f2b464ef08..cb0a9576378 100644
--- a/sql/sql_acl.cc
+++ b/sql/sql_acl.cc
@@ -5232,14 +5232,6 @@ bool mysql_create_user(THD *thd, List <LEX_USER> &list)
continue;
}
- if (user_name->host.length > HOSTNAME_LENGTH ||
- user_name->user.length > USERNAME_LENGTH)
- {
- append_user(&wrong_users, user_name);
- result= TRUE;
- continue;
- }
-
/*
Search all in-memory structures and grant tables
for a mention of the new user name.