|
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 |
@@ -2425,7 +2425,7 @@ case SQLCOM_PREPARE: |
2425 | 2425 |
|
2426 | 2426 | if (((lex->create_info.used_fields & HA_CREATE_USED_DATADIR) != 0 || |
2427 | 2427 | (lex->create_info.used_fields & HA_CREATE_USED_INDEXDIR) != 0) && |
2428 | | - check_access(thd, FILE_ACL, NULL, NULL, NULL, FALSE, FALSE)) |
| 2428 | + check_access(thd, FILE_ACL, any_db, NULL, NULL, FALSE, FALSE)) |
2429 | 2429 | { |
2430 | 2430 | res= 1; |
2431 | 2431 | my_error(ER_SPECIFIC_ACCESS_DENIED_ERROR, MYF(0), "FILE"); |
@@ -2470,7 +2470,7 @@ case SQLCOM_PREPARE: |
2470 | 2470 | { |
2471 | 2471 | partition_info *part_info= thd->lex->part_info; |
2472 | 2472 | if (part_info != NULL && has_external_data_or_index_dir(*part_info) && |
2473 | | - check_access(thd, FILE_ACL, NULL, NULL, NULL, FALSE, FALSE)) |
| 2473 | + check_access(thd, FILE_ACL, any_db, NULL, NULL, FALSE, FALSE)) |
2474 | 2474 | { |
2475 | 2475 | res= -1; |
2476 | 2476 | goto end_with_restore_list; |
|
0 commit comments