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
3d7a384d
Commit
3d7a384d
authored
Feb 14, 2005
by
jimw@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow hostnames that are IP addresses with a netmask even when
running with --skip-name-resolve. (Bug #8471)
parent
dd62343b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
1 deletion
+14
-1
mysql-test/r/skip_name_resolve.result
mysql-test/r/skip_name_resolve.result
+7
-0
mysql-test/t/skip_name_resolve-master.opt
mysql-test/t/skip_name_resolve-master.opt
+1
-0
mysql-test/t/skip_name_resolve.test
mysql-test/t/skip_name_resolve.test
+5
-0
sql/sql_acl.cc
sql/sql_acl.cc
+1
-1
No files found.
mysql-test/r/skip_name_resolve.result
0 → 100644
View file @
3d7a384d
GRANT ALL ON test.* TO mysqltest_1@'127.0.0.1/255.255.255.255';
SHOW GRANTS FOR mysqltest_1@'127.0.0.1/255.255.255.255';
Grants for mysqltest_1@127.0.0.1/255.255.255.255
GRANT USAGE ON *.* TO 'mysqltest_1'@'127.0.0.1/255.255.255.255'
GRANT ALL PRIVILEGES ON `test`.* TO 'mysqltest_1'@'127.0.0.1/255.255.255.255'
REVOKE ALL ON test.* FROM mysqltest_1@'127.0.0.1/255.255.255.255';
DROP USER mysqltest_1@'127.0.0.1/255.255.255.255';
mysql-test/t/skip_name_resolve-master.opt
0 → 100644
View file @
3d7a384d
--skip-name-resolve
mysql-test/t/skip_name_resolve.test
0 → 100644
View file @
3d7a384d
# Bug #8471: IP address with mask fail when skip-name-resolve is on
GRANT
ALL
ON
test
.*
TO
mysqltest_1
@
'127.0.0.1/255.255.255.255'
;
SHOW
GRANTS
FOR
mysqltest_1
@
'127.0.0.1/255.255.255.255'
;
REVOKE
ALL
ON
test
.*
FROM
mysqltest_1
@
'127.0.0.1/255.255.255.255'
;
DROP
USER
mysqltest_1
@
'127.0.0.1/255.255.255.255'
;
sql/sql_acl.cc
View file @
3d7a384d
...
...
@@ -1339,7 +1339,7 @@ bool hostname_requires_resolving(const char *hostname)
return
FALSE
;
for
(;
(
cur
=*
hostname
);
hostname
++
)
{
if
((
cur
!=
'%'
)
&&
(
cur
!=
'_'
)
&&
(
cur
!=
'.'
)
&&
if
((
cur
!=
'%'
)
&&
(
cur
!=
'_'
)
&&
(
cur
!=
'.'
)
&&
(
cur
!=
'/'
)
&&
((
cur
<
'0'
)
||
(
cur
>
'9'
)))
return
TRUE
;
}
...
...
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