Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
743cad72
Commit
743cad72
authored
Sep 20, 2005
by
jimw@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix handling of password field at the old size (16 characters) but in
the UTF-8 character set. (Bug #13064)
parent
d0c57829
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
sql/sql_acl.cc
sql/sql_acl.cc
+6
-3
No files found.
sql/sql_acl.cc
View file @
743cad72
...
@@ -193,6 +193,7 @@ static my_bool acl_load(THD *thd, TABLE_LIST *tables)
...
@@ -193,6 +193,7 @@ static my_bool acl_load(THD *thd, TABLE_LIST *tables)
my_bool
return_val
=
1
;
my_bool
return_val
=
1
;
bool
check_no_resolve
=
specialflag
&
SPECIAL_NO_RESOLVE
;
bool
check_no_resolve
=
specialflag
&
SPECIAL_NO_RESOLVE
;
char
tmp_name
[
NAME_LEN
+
1
];
char
tmp_name
[
NAME_LEN
+
1
];
int
password_length
;
DBUG_ENTER
(
"acl_load"
);
DBUG_ENTER
(
"acl_load"
);
priv_version
++
;
/* Privileges updated */
priv_version
++
;
/* Privileges updated */
...
@@ -250,7 +251,9 @@ static my_bool acl_load(THD *thd, TABLE_LIST *tables)
...
@@ -250,7 +251,9 @@ static my_bool acl_load(THD *thd, TABLE_LIST *tables)
init_read_record
(
&
read_record_info
,
thd
,
table
=
tables
[
1
].
table
,
NULL
,
1
,
0
);
init_read_record
(
&
read_record_info
,
thd
,
table
=
tables
[
1
].
table
,
NULL
,
1
,
0
);
VOID
(
my_init_dynamic_array
(
&
acl_users
,
sizeof
(
ACL_USER
),
50
,
100
));
VOID
(
my_init_dynamic_array
(
&
acl_users
,
sizeof
(
ACL_USER
),
50
,
100
));
if
(
table
->
field
[
2
]
->
field_length
<
SCRAMBLED_PASSWORD_CHAR_LENGTH_323
)
password_length
=
table
->
field
[
2
]
->
field_length
/
table
->
field
[
2
]
->
charset
()
->
mbmaxlen
;
if
(
password_length
<
SCRAMBLED_PASSWORD_CHAR_LENGTH_323
)
{
{
sql_print_error
(
"Fatal error: mysql.user table is damaged or in "
sql_print_error
(
"Fatal error: mysql.user table is damaged or in "
"unsupported 3.20 format."
);
"unsupported 3.20 format."
);
...
@@ -258,10 +261,10 @@ static my_bool acl_load(THD *thd, TABLE_LIST *tables)
...
@@ -258,10 +261,10 @@ static my_bool acl_load(THD *thd, TABLE_LIST *tables)
}
}
DBUG_PRINT
(
"info"
,(
"user table fields: %d, password length: %d"
,
DBUG_PRINT
(
"info"
,(
"user table fields: %d, password length: %d"
,
table
->
fields
,
table
->
field
[
2
]
->
fiel
d_length
));
table
->
fields
,
passwor
d_length
));
pthread_mutex_lock
(
&
LOCK_global_system_variables
);
pthread_mutex_lock
(
&
LOCK_global_system_variables
);
if
(
table
->
field
[
2
]
->
fiel
d_length
<
SCRAMBLED_PASSWORD_CHAR_LENGTH
)
if
(
passwor
d_length
<
SCRAMBLED_PASSWORD_CHAR_LENGTH
)
{
{
if
(
opt_secure_auth
)
if
(
opt_secure_auth
)
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment