summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorserg@serg.mylan <>2003-08-07 16:27:05 +0200
committerserg@serg.mylan <>2003-08-07 16:27:05 +0200
commite56383eff2dcb858bbcc65de74adeb21cb6eb512 (patch)
tree40293ce97256c30c37c972620d7d39e67a312efe /sql
parentcc843a81ae8a1d8d7ec1e10dfc448375fb71bb8f (diff)
parent86e79ec380abe72997db253a55804e3c9edd285a (diff)
downloadmariadb-git-e56383eff2dcb858bbcc65de74adeb21cb6eb512.tar.gz
Merge bk-internal:/home/bk/mysql-4.0/
into serg.mylan:/usr/home/serg/Abk/mysql-4.0
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 3a3de2abf10..714a416ab95 100644
--- a/sql/sql_acl.cc
+++ b/sql/sql_acl.cc
@@ -233,10 +233,10 @@ my_bool acl_init(THD *org_thd, bool dont_read_acl_tables)
"Found old style password for user '%s'. Ignoring user. (You may want to restart mysqld using --old-protocol)",
user.user ? user.user : ""); /* purecov: tested */
}
- else if (length % 8) // This holds true for passwords
+ else if (length % 8 || length > 16)
{
sql_print_error(
- "Found invalid password for user: '%s@%s'; Ignoring user",
+ "Found invalid password for user: '%s'@'%s'; Ignoring user",
user.user ? user.user : "",
user.host.hostname ? user.host.hostname : ""); /* purecov: tested */
continue; /* purecov: tested */