diff options
author | gluh@eagle.intranet.mysql.r18.ru <> | 2005-10-07 14:16:44 +0500 |
---|---|---|
committer | gluh@eagle.intranet.mysql.r18.ru <> | 2005-10-07 14:16:44 +0500 |
commit | b2b8d8b276b62b1c8b63b2ebda4571b205b7f41e (patch) | |
tree | a805b676320dd81004ea2eae71ee99289c9c5360 /sql | |
parent | 140dea1426a6f6e29249ad4d894a0a787ffc0265 (diff) | |
download | mariadb-git-b2b8d8b276b62b1c8b63b2ebda4571b205b7f41e.tar.gz |
Fix for bug#13202 SELECT * INTO OUTFILE ... FROM information_schema.schemata now fails
allow select into outfile from I_S tables
it is enough to add FILE_ACL for I_S tables only to 'check_table_access' function
as we use 'any_db' for 'check_access' function in places where FILE_ACL is required
Diffstat (limited to 'sql')
-rw-r--r-- | sql/sql_parse.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index 57b7c387ac9..b70409704a2 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -5002,7 +5002,7 @@ check_table_access(THD *thd, ulong want_access,TABLE_LIST *tables, for (; tables; tables= tables->next_global) { if (tables->schema_table && - (want_access & ~(SELECT_ACL | EXTRA_ACL))) + (want_access & ~(SELECT_ACL | EXTRA_ACL | FILE_ACL))) { if (!no_errors) my_error(ER_DBACCESS_DENIED_ERROR, MYF(0), |