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
d37c04d1
Commit
d37c04d1
authored
Jan 10, 2006
by
msvensson@neptunus.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal:/home/bk/mysql-5.1-new
into neptunus.(none):/home/msvensson/mysql/bug15598/my51-bug15598
parents
b296f64c
0d6d232d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
2 deletions
+24
-2
mysql-test/r/grant.result
mysql-test/r/grant.result
+9
-0
mysql-test/t/grant.test
mysql-test/t/grant.test
+12
-0
sql/sql_acl.cc
sql/sql_acl.cc
+3
-2
No files found.
mysql-test/r/grant.result
View file @
d37c04d1
...
...
@@ -615,3 +615,12 @@ show grants for root@localhost;
Grants for root@localhost
GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION
set names latin1;
create user mysqltest_7@;
set password for mysqltest_7@ = password('systpass');
show grants for mysqltest_7@;
Grants for mysqltest_7@
GRANT USAGE ON *.* TO 'mysqltest_7'@'' IDENTIFIED BY PASSWORD '*2FB071A056F9BB745219D9C876814231DAF46517'
drop user mysqltest_7@;
flush privileges;
show grants for mysqltest_7@;
ERROR 42000: There is no such grant defined for user 'mysqltest_7' on host ''
mysql-test/t/grant.test
View file @
d37c04d1
...
...
@@ -499,4 +499,16 @@ revoke all privileges on
show
grants
for
root
@
localhost
;
set
names
latin1
;
#
# Bug #15598 Server crashes in specific case during setting new password
# - Caused by a user with host ''
#
create
user
mysqltest_7
@
;
set
password
for
mysqltest_7
@
=
password
(
'systpass'
);
show
grants
for
mysqltest_7
@
;
drop
user
mysqltest_7
@
;
flush
privileges
;
# BUG#16297(flush should be removed when that bug is fixed)
--
error
1141
show
grants
for
mysqltest_7
@
;
# End of 4.1 tests
sql/sql_acl.cc
View file @
d37c04d1
...
...
@@ -1541,7 +1541,8 @@ find_acl_user(const char *host, const char *user, my_bool exact)
acl_user
->
user
&&
!
strcmp
(
user
,
acl_user
->
user
))
{
if
(
exact
?
!
my_strcasecmp
(
&
my_charset_latin1
,
host
,
acl_user
->
host
.
hostname
)
:
acl_user
->
host
.
hostname
?
acl_user
->
host
.
hostname
:
""
)
:
compare_hostname
(
&
acl_user
->
host
,
host
,
host
))
{
DBUG_RETURN
(
acl_user
);
...
...
@@ -4649,7 +4650,7 @@ ACL_USER *check_acl_user(LEX_USER *user_name,
if
(
!
(
user
=
acl_user
->
user
))
user
=
""
;
if
(
!
(
host
=
acl_user
->
host
.
hostname
))
host
=
"
%
"
;
host
=
""
;
if
(
!
strcmp
(
user_name
->
user
.
str
,
user
)
&&
!
my_strcasecmp
(
system_charset_info
,
user_name
->
host
.
str
,
host
))
break
;
...
...
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