summaryrefslogtreecommitdiff
path: root/sql/sql_parse.cc
diff options
context:
space:
mode:
authorunknown <gluh@mysql.com/eagle.(none)>2007-05-04 14:41:58 +0500
committerunknown <gluh@mysql.com/eagle.(none)>2007-05-04 14:41:58 +0500
commit13cfc4775c4e310ad8a8c44efa512944b4c7a11d (patch)
tree21599319b1facc2d206f15618620a7449b307b2e /sql/sql_parse.cc
parent74c794d0e4a14b6deddc90e74ed718c2f00653df (diff)
downloadmariadb-git-13cfc4775c4e310ad8a8c44efa512944b4c7a11d.tar.gz
Bug#28181 Access denied to 'information_schema when select into out file (regression)
allow select into out file from I_S if user has FILE privilege otherwise issue an error mysql-test/r/outfile.result: test result mysql-test/t/outfile.test: test case sql/sql_parse.cc: allow select into out file from I_S if user has FILE privilege otherwise issue an error
Diffstat (limited to 'sql/sql_parse.cc')
-rw-r--r--sql/sql_parse.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc
index 35089bbb251..3ca0c78d96a 100644
--- a/sql/sql_parse.cc
+++ b/sql/sql_parse.cc
@@ -5261,7 +5261,8 @@ check_access(THD *thd, ulong want_access, const char *db, ulong *save_priv,
if (schema_db)
{
- if (want_access & ~(SELECT_ACL | EXTRA_ACL))
+ if (!(sctx->master_access & FILE_ACL) && (want_access & FILE_ACL) ||
+ (want_access & ~(SELECT_ACL | EXTRA_ACL | FILE_ACL)))
{
if (!no_errors)
{