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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
99fa5361
Commit
99fa5361
authored
Jan 19, 2001
by
sasha@mysql.sashanet.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed coredump in SET PASSWORD in slave thread.
parent
fff8cbff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
mysql-test/t/rpl000001.test
mysql-test/t/rpl000001.test
+2
-0
sql/sql_acl.cc
sql/sql_acl.cc
+2
-2
No files found.
mysql-test/t/rpl000001.test
View file @
99fa5361
...
...
@@ -5,6 +5,8 @@ drop table if exists t1;
create
table
t1
(
word
char
(
20
)
not
null
);
load
data
infile
'../../std_data/words.dat'
into
table
t1
;
drop
table
if
exists
foo
;
set
password
=
password
(
'foo'
);
set
password
=
password
(
''
);
create
table
foo
(
n
int
);
insert
into
foo
values
(
1
),(
2
);
save_master_pos
;
...
...
sql/sql_acl.cc
View file @
99fa5361
...
...
@@ -781,8 +781,8 @@ bool change_password(THD *thd, const char *host, const char *user,
length
=
(
uint
)
strlen
(
new_password
);
new_password
[
length
&
16
]
=
0
;
if
(
!
thd
||
strcmp
(
thd
->
user
,
user
)
||
my_strcasecmp
(
host
,
thd
->
host
?
thd
->
host
:
thd
->
ip
))
if
(
!
thd
||
(
!
thd
->
slave_thread
&&
(
strcmp
(
thd
->
user
,
user
)
||
my_strcasecmp
(
host
,
thd
->
host
?
thd
->
host
:
thd
->
ip
))
))
{
if
(
check_access
(
thd
,
UPDATE_ACL
,
"mysql"
,
0
,
1
))
return
1
;
...
...
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