summaryrefslogtreecommitdiff
path: root/sql/sql_acl.cc
diff options
context:
space:
mode:
authorunknown <jimw@mysql.com>2005-02-14 20:33:14 -0800
committerunknown <jimw@mysql.com>2005-02-14 20:33:14 -0800
commitddcb947ff73d89233093fb696212a8f788c952df (patch)
tree9f04b77005b330cf45838745b39a307a3112cc1e /sql/sql_acl.cc
parent1b46843c10d1e5d2d6589acbb61cc1a3d8d9a4e1 (diff)
downloadmariadb-git-ddcb947ff73d89233093fb696212a8f788c952df.tar.gz
Allow hostnames that are IP addresses with a netmask even when
running with --skip-name-resolve. (Bug #8471) sql/sql_acl.cc: Add '/' to list of characters that doesn't trigger a need for resolving the hostname, so that the IP mask syntax works with skip-name-resolve.
Diffstat (limited to 'sql/sql_acl.cc')
-rw-r--r--sql/sql_acl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_acl.cc b/sql/sql_acl.cc
index 7c17a4ef275..f437a432921 100644
--- a/sql/sql_acl.cc
+++ b/sql/sql_acl.cc
@@ -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;
}