|
1 | | -/* Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved. |
| 1 | +/* Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved. |
2 | 2 |
|
3 | 3 | This program is free software; you can redistribute it and/or modify |
4 | 4 | it under the terms of the GNU General Public License as published by |
@@ -3010,7 +3010,7 @@ case SQLCOM_PREPARE: |
3010 | 3010 |
|
3011 | 3011 | if (((lex->create_info.used_fields & HA_CREATE_USED_DATADIR) != 0 || |
3012 | 3012 | (lex->create_info.used_fields & HA_CREATE_USED_INDEXDIR) != 0) && |
3013 | | - check_access(thd, FILE_ACL, NULL, NULL, NULL, FALSE, FALSE)) |
| 3013 | + check_access(thd, FILE_ACL, any_db, NULL, NULL, FALSE, FALSE)) |
3014 | 3014 | { |
3015 | 3015 | res= 1; |
3016 | 3016 | my_error(ER_SPECIFIC_ACCESS_DENIED_ERROR, MYF(0), "FILE"); |
@@ -3076,7 +3076,7 @@ case SQLCOM_PREPARE: |
3076 | 3076 | { |
3077 | 3077 | partition_info *part_info= thd->lex->part_info; |
3078 | 3078 | if (part_info != NULL && has_external_data_or_index_dir(*part_info) && |
3079 | | - check_access(thd, FILE_ACL, NULL, NULL, NULL, FALSE, FALSE)) |
| 3079 | + check_access(thd, FILE_ACL, any_db, NULL, NULL, FALSE, FALSE)) |
3080 | 3080 | { |
3081 | 3081 | res= -1; |
3082 | 3082 | goto end_with_restore_list; |
|
0 commit comments