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
0ab38c8c
Commit
0ab38c8c
authored
Jun 02, 2004
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge tulin@bk-internal.mysql.com:/home/bk/mysql-4.1
into mc05.(none):/space2/tomas/mysql-4.1-ndb-test
parents
c8b3aa9c
75af862b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
sql/password.c
sql/password.c
+2
-0
sql/sql_acl.cc
sql/sql_acl.cc
+3
-3
No files found.
sql/password.c
View file @
0ab38c8c
...
@@ -218,6 +218,8 @@ check_scramble_323(const char *scrambled, const char *message,
...
@@ -218,6 +218,8 @@ check_scramble_323(const char *scrambled, const char *message,
to
=
buff
;
to
=
buff
;
for
(
pos
=
scrambled
;
*
pos
;
pos
++
)
for
(
pos
=
scrambled
;
*
pos
;
pos
++
)
*
to
++=
(
char
)
(
floor
(
my_rnd
(
&
rand_st
)
*
31
)
+
64
);
*
to
++=
(
char
)
(
floor
(
my_rnd
(
&
rand_st
)
*
31
)
+
64
);
if
(
pos
-
scrambled
!=
SCRAMBLE_LENGTH_323
)
return
1
;
extra
=
(
char
)
(
floor
(
my_rnd
(
&
rand_st
)
*
31
));
extra
=
(
char
)
(
floor
(
my_rnd
(
&
rand_st
)
*
31
));
to
=
buff
;
to
=
buff
;
while
(
*
scrambled
)
while
(
*
scrambled
)
...
...
sql/sql_acl.cc
View file @
0ab38c8c
...
@@ -629,10 +629,10 @@ int acl_getroot(THD *thd, USER_RESOURCES *mqh,
...
@@ -629,10 +629,10 @@ int acl_getroot(THD *thd, USER_RESOURCES *mqh,
if
(
passwd_len
==
acl_user_tmp
->
salt_len
)
if
(
passwd_len
==
acl_user_tmp
->
salt_len
)
{
{
if
(
acl_user_tmp
->
salt_len
==
0
||
if
(
acl_user_tmp
->
salt_len
==
0
||
acl_user_tmp
->
salt_len
==
SCRAMBLE_LENGTH
&&
(
acl_user_tmp
->
salt_len
==
SCRAMBLE_LENGTH
?
check_scramble
(
passwd
,
thd
->
scramble
,
acl_user_tmp
->
salt
)
==
0
||
check_scramble
(
passwd
,
thd
->
scramble
,
acl_user_tmp
->
salt
)
:
check_scramble_323
(
passwd
,
thd
->
scramble
,
check_scramble_323
(
passwd
,
thd
->
scramble
,
(
ulong
*
)
acl_user_tmp
->
salt
)
==
0
)
(
ulong
*
)
acl_user_tmp
->
salt
)
)
==
0
)
{
{
acl_user
=
acl_user_tmp
;
acl_user
=
acl_user_tmp
;
res
=
0
;
res
=
0
;
...
...
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