|
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 |
@@ -2907,7 +2907,7 @@ case SQLCOM_PREPARE: |
2907 | 2907 |
|
2908 | 2908 | if (((lex->create_info.used_fields & HA_CREATE_USED_DATADIR) != 0 || |
2909 | 2909 | (lex->create_info.used_fields & HA_CREATE_USED_INDEXDIR) != 0) && |
2910 | | - check_access(thd, FILE_ACL, NULL, NULL, NULL, FALSE, FALSE)) |
| 2910 | + check_access(thd, FILE_ACL, any_db, NULL, NULL, FALSE, FALSE)) |
2911 | 2911 | { |
2912 | 2912 | res= 1; |
2913 | 2913 | my_error(ER_SPECIFIC_ACCESS_DENIED_ERROR, MYF(0), "FILE"); |
@@ -2952,7 +2952,7 @@ case SQLCOM_PREPARE: |
2952 | 2952 | { |
2953 | 2953 | partition_info *part_info= thd->lex->part_info; |
2954 | 2954 | if (part_info != NULL && has_external_data_or_index_dir(*part_info) && |
2955 | | - check_access(thd, FILE_ACL, NULL, NULL, NULL, FALSE, FALSE)) |
| 2955 | + check_access(thd, FILE_ACL, any_db, NULL, NULL, FALSE, FALSE)) |
2956 | 2956 | { |
2957 | 2957 | res= -1; |
2958 | 2958 | goto end_with_restore_list; |
|
0 commit comments