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
439b84af
Commit
439b84af
authored
Sep 05, 2003
by
monty@mashka.mysql.fi
Browse files
Options
Browse Files
Download
Plain Diff
Merge with 3.23
parents
75b2c4a6
a6e3ee6b
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
94 additions
and
74 deletions
+94
-74
client/mysqldump.c
client/mysqldump.c
+87
-71
sql/sql_acl.cc
sql/sql_acl.cc
+7
-3
No files found.
client/mysqldump.c
View file @
439b84af
This diff is collapsed.
Click to expand it.
sql/sql_acl.cc
View file @
439b84af
...
@@ -1607,6 +1607,7 @@ class GRANT_TABLE :public Sql_alloc
...
@@ -1607,6 +1607,7 @@ class GRANT_TABLE :public Sql_alloc
public:
public:
char
*
host
,
*
db
,
*
user
,
*
tname
,
*
hash_key
;
char
*
host
,
*
db
,
*
user
,
*
tname
,
*
hash_key
;
ulong
privs
,
cols
;
ulong
privs
,
cols
;
ulong
sort
;
uint
key_length
;
uint
key_length
;
HASH
hash_columns
;
HASH
hash_columns
;
GRANT_TABLE
(
const
char
*
h
,
const
char
*
d
,
const
char
*
u
,
const
char
*
t
,
GRANT_TABLE
(
const
char
*
h
,
const
char
*
d
,
const
char
*
u
,
const
char
*
t
,
...
@@ -1616,6 +1617,7 @@ public:
...
@@ -1616,6 +1617,7 @@ public:
host
=
strdup_root
(
&
memex
,
h
);
host
=
strdup_root
(
&
memex
,
h
);
db
=
strdup_root
(
&
memex
,
d
);
db
=
strdup_root
(
&
memex
,
d
);
user
=
strdup_root
(
&
memex
,
u
);
user
=
strdup_root
(
&
memex
,
u
);
sort
=
get_sort
(
3
,
host
,
db
,
user
);
tname
=
strdup_root
(
&
memex
,
t
);
tname
=
strdup_root
(
&
memex
,
t
);
if
(
lower_case_table_names
)
if
(
lower_case_table_names
)
{
{
...
@@ -1638,6 +1640,7 @@ public:
...
@@ -1638,6 +1640,7 @@ public:
user
=
get_field
(
&
memex
,
form
,
2
);
user
=
get_field
(
&
memex
,
form
,
2
);
if
(
!
user
)
if
(
!
user
)
user
=
(
char
*
)
""
;
user
=
(
char
*
)
""
;
sort
=
get_sort
(
3
,
host
,
db
,
user
);
tname
=
get_field
(
&
memex
,
form
,
3
);
tname
=
get_field
(
&
memex
,
form
,
3
);
if
(
!
host
||
!
db
||
!
tname
)
if
(
!
host
||
!
db
||
!
tname
)
{
{
...
@@ -1745,9 +1748,10 @@ static GRANT_TABLE *table_hash_search(const char *host,const char* ip,
...
@@ -1745,9 +1748,10 @@ static GRANT_TABLE *table_hash_search(const char *host,const char* ip,
}
}
else
else
{
{
if
((
host
&&
!
wild_case_compare
(
host
,
grant_table
->
host
))
||
if
(((
host
&&
!
wild_case_compare
(
host
,
grant_table
->
host
))
||
(
ip
&&
!
wild_case_compare
(
ip
,
grant_table
->
host
)))
(
ip
&&
!
wild_case_compare
(
ip
,
grant_table
->
host
)))
&&
found
=
grant_table
;
// Host ok
(
!
found
||
found
->
sort
<
grant_table
->
sort
))
found
=
grant_table
;
}
}
}
}
return
found
;
return
found
;
...
...
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