diff options
author | unknown <msvensson@pilot.mysql.com> | 2007-02-14 14:51:49 +0100 |
---|---|---|
committer | unknown <msvensson@pilot.mysql.com> | 2007-02-14 14:51:49 +0100 |
commit | fe46b0ff6c862862efa5ad990f4941c03a25640e (patch) | |
tree | 8f6f0bf8705654adfef1b27bf5997db33482b106 /sql/sql_load.cc | |
parent | 581db6c18a7a7e566b489509cde5d7d0533f1d3f (diff) | |
parent | 555aed64aa38475f424a3620b79a3b5e9d0ddb67 (diff) | |
download | mariadb-git-fe46b0ff6c862862efa5ad990f4941c03a25640e.tar.gz |
Merge pilot.mysql.com:/home/msvensson/mysql/mysql-5.0-maint
into pilot.mysql.com:/home/msvensson/mysql/mysql-5.1-new-maint
mysql-test/mysql-test-run.pl:
Auto merged
mysql-test/r/loaddata.result:
Auto merged
mysql-test/r/query_cache.result:
Auto merged
mysql-test/r/type_blob.result:
Auto merged
mysql-test/t/loaddata.test:
Auto merged
mysql-test/t/query_cache.test:
Auto merged
mysql-test/t/type_blob.test:
Auto merged
sql/item_strfunc.cc:
Auto merged
sql/mysql_priv.h:
Auto merged
sql/sql_class.cc:
Auto merged
sql/sql_load.cc:
Auto merged
sql/mysqld.cc:
Manual merge of OPT_SECUREE_FILE_PRIV
sql/set_var.cc:
Manual merge
sql/share/errmsg.txt:
Manual merge, change is already in 5.1
sql/sql_class.h:
Manual mergem change is already in 5.1
Diffstat (limited to 'sql/sql_load.cc')
-rw-r--r-- | sql/sql_load.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sql/sql_load.cc b/sql/sql_load.cc index 364fda2c94b..50a414b33bd 100644 --- a/sql/sql_load.cc +++ b/sql/sql_load.cc @@ -305,6 +305,15 @@ bool mysql_load(THD *thd,sql_exchange *ex,TABLE_LIST *table_list, if ((stat_info.st_mode & S_IFIFO) == S_IFIFO) is_fifo = 1; #endif + + if (opt_secure_file_priv && + strncmp(opt_secure_file_priv, name, strlen(opt_secure_file_priv))) + { + /* Read only allowed from within dir specified by secure_file_priv */ + my_error(ER_OPTION_PREVENTS_STATEMENT, MYF(0), "--secure-file-priv"); + DBUG_RETURN(TRUE); + } + } if ((file=my_open(name,O_RDONLY,MYF(MY_WME))) < 0) DBUG_RETURN(TRUE); |