diff options
author | unknown <svoj@june.mysql.com> | 2007-11-12 15:16:00 +0400 |
---|---|---|
committer | unknown <svoj@june.mysql.com> | 2007-11-12 15:16:00 +0400 |
commit | 7cc910a02e09eec108cfcbd4bfc6d55a0cac48df (patch) | |
tree | d6db35fefc5e9feede999e66574f618f6b6ce3df /mysql-test/t/symlink.test | |
parent | 69951a7fa4818eeacf73ea9cd817274dca492b67 (diff) | |
parent | e8e897bc63b112e699c86153728c025ab4e63883 (diff) | |
download | mariadb-git-7cc910a02e09eec108cfcbd4bfc6d55a0cac48df.tar.gz |
Merge mysql.com:/home/svoj/devel/mysql/BUG32111/mysql-4.1-engines
into mysql.com:/home/svoj/devel/mysql/BUG32111/mysql-5.0-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 8c67a4c1048..21c17cfb45e 100644 --- a/mysql-test/t/symlink.test +++ b/mysql-test/t/symlink.test @@ -125,6 +125,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) # |