diff options
author | unknown <svoj@june.mysql.com> | 2007-11-12 15:26:37 +0400 |
---|---|---|
committer | unknown <svoj@june.mysql.com> | 2007-11-12 15:26:37 +0400 |
commit | e1d98e8d51b3cd95d9ce4ac4afe56cd74ad4830b (patch) | |
tree | 416675f554f9510d74bab6b059d70c318873771d /mysql-test/t/symlink.test | |
parent | 076f2f732df6670a3ee7b8e290b2b66a04a77fe6 (diff) | |
parent | c63fd4dd32154044c0fcca00d3ea0d5ddb614fee (diff) | |
download | mariadb-git-e1d98e8d51b3cd95d9ce4ac4afe56cd74ad4830b.tar.gz |
Merge mysql.com:/home/svoj/devel/mysql/BUG32111/mysql-5.0-engines
into mysql.com:/home/svoj/devel/mysql/BUG32111/mysql-5.1-engines
mysql-test/r/symlink.result:
Auto merged
mysql-test/t/symlink.test:
Auto merged
mysys/my_symlink2.c:
Auto merged
Diffstat (limited to 'mysql-test/t/symlink.test')
-rw-r--r-- | mysql-test/t/symlink.test | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/mysql-test/t/symlink.test b/mysql-test/t/symlink.test index 15f50b11e73..7d6a3aa78c9 100644 --- a/mysql-test/t/symlink.test +++ b/mysql-test/t/symlink.test @@ -121,6 +121,18 @@ show create table t1; drop table t1; # +# BUG#32111 - Security Breach via DATA/INDEX DIRECORY and RENAME TABLE +# +--replace_result $MYSQL_TEST_DIR TEST_DIR +eval CREATE TABLE t1(a INT) +DATA DIRECTORY='$MYSQL_TEST_DIR/var/master-data/mysql' +INDEX DIRECTORY='$MYSQL_TEST_DIR/var/master-data/mysql'; +--replace_result $MYSQL_TEST_DIR TEST_DIR +--error 1 +RENAME TABLE t1 TO user; +DROP TABLE t1; + +# # Test specifying DATA DIRECTORY that is the same as what would normally # have been chosen. (Bug #8707) # |