summaryrefslogtreecommitdiff
path: root/mysql-test/t/symlink.test
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'mysql/5.5' into 5.5mariadb-5.5.55Sergei Golubchik2017-04-111-0/+16
|\
| * Bug#25514146: DB_NAME IS IGNORED WHEN CREATING TABLE WITH DATA DIRECTORYDyre Tjeldvoll2017-02-231-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | Problem: CREATE TABLE using a fully qualified name with INDEX DIR/DATA DIR option reports an error when the current database is not SET. check_access() was incorrectly called with NULL as the database argument in a situation where the database name was not needed for the particular privilege being checked. This will cause the current database to be used, or an error to be reported if there is no current database. Fix: Call check_access() with any_db as the database argument in this situation.
| * Fix for bug #11759990 - "52354: 'CREATE TABLE .. LIKE ... 'Dmitry Lenev2011-06-091-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | STATEMENTS FAIL". Attempt to execute CREATE TABLE LIKE statement on a MyISAM table with INDEX or DATA DIRECTORY options specified as a source resulted in "MyISAM table '...' is in use..." error. According to our documentation such a statement should create a copy of source table with DATA/INDEX DIRECTORY options omitted. The problem was that new implementation of CREATE TABLE LIKE statement in 5.5 tried to copy value of INDEX and DATA DIRECTORY parameters from the source table. Since in description of source table this parameters also included name of this table, attempt to create target table with these parameter led to file name conflict and error. This fix addresses the problem by preserving documented and backward-compatible behavior. I.e. by ensuring that contents of DATA/INDEX DIRECTORY clauses for the source table is ignored when target table is created.
| * (no commit message)Sandeep Doddaballapur2011-01-311-6/+11
| |
| * BUG#40980 - Drop table can remove another MyISAM table'sSergey Vojtovich2010-04-011-0/+22
| | | | | | | | | | | | | | | | | | data and index files It was possible if DATA/INDEX DIRECTORY is pointing to symlinked MySQL data home directory. Do not allow to drop data/index files implicitly symlinked to data home directory. For such tables remove symlink only.
| * merge 5.1 --> 5.1-rplAlfranio Correia2008-12-131-8/+26
| |\
| | * Bug#41002 - symlink.test fails on symlinked datadirIngo Struewing2008-11-251-4/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | symlink.test failed when run in an environment that has mysql-test/var symlinked to elsewhere, e.g. a memory file system. This is the case when running mysql-test-run --mem. In this case the server does not detect that the directory specified with a DATA/INDEX DIRECTORY clause is within its data home directory. This problem was reported as Bug#39277 (Creation of table with data and/or index files in data home directory succeeds). It was decided that it will not be fixed in 5.1. Hence, the current behavior is accepted for 5.1. It will be fixed in 6.0 though. Fixed the test case so that it works in both environments. 1. When no symbolic link is involved, the server notices that the data/index directory is in its data hone directory and rejects the CREATE/ALTER TABLE statement. 2. When the data home directory is symlinked, it does not notice the problem and executes the statement sucessfully.
| * | Merging 5.1 main into 5.1-rplMats Kindahl2008-10-231-6/+7
| |\ \ | | |/
| | * Merge 5.0 -> 5.1Patrick Crews2008-09-301-6/+6
| | |\
| | | * Bug#38311 - Fix of some cruft from remove_files in ndb_autodiscover.test, ↵Patrick Crews2008-09-231-5/+5
| | | |\ | | | | | | | | | | | | | | | | | | | | clean up of distinct.test, and replacing error numbers with error names.
| | | * | Bug#38311 Some tests use 'rm' which is not portablePatrick Crews2008-09-201-1/+2
| | | |/ | | | | | | | | | | | | Substituted use of MTR's remove_file function in the tests Started with 5.0 tree and will clean up any offenders discovered during upmerge.
| * | | Merge 5.1 main -> 5.1-rplHe Zhenxing2008-09-061-4/+3
| |\ \ \ | | |/ /
| | * | merging fixAlexey Botchkov2008-08-261-4/+3
| | |\ \ | | | |/
| | | * merging fixesAlexey Botchkov2008-08-261-4/+4
| | | |
| | * | mergingAlexey Botchkov2008-08-231-2/+2
| | |\ \ | | | |/
| | | * Bug#32167 another privilege bypass with DATA/INDEX DIRECTORY.Alexey Botchkov2008-08-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | test_if_data_home_dir fixed to look into real path. Checks added to mi_open for symlinks into data home directory. per-file messages: include/my_sys.h Bug#32167 another privilege bypass with DATA/INDEX DIRECTORY. my_is_symlink interface added include/myisam.h Bug#32167 another privilege bypass with DATA/INDEX DIRECTORY. myisam_test_invalid_symlink interface added myisam/mi_check.c Bug#32167 another privilege bypass with DATA/INDEX DIRECTORY. mi_open_datafile calls modified myisam/mi_open.c Bug#32167 another privilege bypass with DATA/INDEX DIRECTORY. code added to mi_open to check for symlinks into data home directory. mi_open_datafile now accepts 'original' file path to check if it's an allowed symlink. myisam/mi_static.c Bug#32167 another privilege bypass with DATA/INDEX DIRECTORY. myisam_test_invlaid_symlink defined myisam/myisamchk.c Bug#32167 another privilege bypass with DATA/INDEX DIRECTORY. mi_open_datafile call modified myisam/myisamdef.h Bug#32167 another privilege bypass with DATA/INDEX DIRECTORY. mi_open_datafile interface modified - 'real_path' parameter added mysql-test/r/symlink.test Bug#32167 another privilege bypass with DATA/INDEX DIRECTORY. error codes corrected as some patch now rejected pointing inside datahome mysql-test/r/symlink.result Bug#32167 another privilege bypass with DATA/INDEX DIRECTORY. error messages corrected in the result mysys/my_symlink.c Bug#32167 another privilege bypass with DATA/INDEX DIRECTORY. my_is_symlink() implementsd my_realpath() now returns the 'realpath' even if a file isn't a symlink sql/mysql_priv.h Bug#32167 another privilege bypass with DATA/INDEX DIRECTORY. test_if_data_home_dir interface sql/mysqld.cc Bug#32167 another privilege bypass with DATA/INDEX DIRECTORY. myisam_test_invalid_symlik set with the 'test_if_data_home_dir' sql/sql_parse.cc Bug#32167 another privilege bypass with DATA/INDEX DIRECTORY. error messages corrected test_if_data_home_dir code fixed
| | | * test case fixgluh@mysql.com/mgluh.(none)2008-03-031-4/+4
| | | |
| | | * Merge mysql.com:/home/gluh/MySQL/Merge/4.1-optgluh@eagle.(none)2008-02-291-0/+3
| | | |\ | | | | | | | | | | | | | | | into mysql.com:/home/gluh/MySQL/Merge/5.0-opt
| | | | * test fixgluh@mysql.com/eagle.(none)2008-02-291-0/+3
| | | | |
| | | * | after merge fixgluh@mysql.com/eagle.(none)2008-02-291-30/+8
| | | | |
| | | * | Merge mysql.com:/home/gluh/MySQL/Merge/4.1-optgluh@eagle.(none)2008-02-291-19/+48
| | | |\ \ | | | | |/ | | | | | | | | | | into mysql.com:/home/gluh/MySQL/Merge/5.0-opt
| | | | * Bug#32167 another privilege bypass with DATA/INDEX DIRECORY(ver 4.1,5.0)gluh@mysql.com/eagle.(none)2008-02-291-19/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | added new function test_if_data_home_dir() which checks that path does not contain mysql data home directory. Using of mysql data home directory in DATA DIRECTORY & INDEX DIRECTORY is disallowed.
| * | | | Fix paths in test and result filesmsvensson@pilot.mysql.com2008-04-031-10/+17
| |/ / /
| * | | Merge stella.local:/home2/mydev/mysql-5.1-ateamistruewing@stella.local2008-03-201-19/+11
| |\ \ \ | | | | | | | | | | | | | | | into stella.local:/home2/mydev/mysql-5.1-axmrg
| | * | | Bug#35305: partition_symlink test failuresmattiasj@witty.2008-03-171-16/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updated the test due to bug 32167 Corrected spelling of error message
| | * | | Merge ↵antony@pcg5ppc.xiphis.org2008-03-141-50/+42
| | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pcg5ppc.xiphis.org:/Network/Servers/anubis.xiphis.org/home/antony/work/mysql-5.1 into pcg5ppc.xiphis.org:/Network/Servers/anubis.xiphis.org/home/antony/work/merge.20080307/mysql-5.1
| * | | | | Post-merge fix. Moved the symlink handling from sql_parse.cc here.istruewing@stella.local2008-03-141-2/+5
| | | | | |
| * | | | | Manual mergeistruewing@stella.local2008-03-141-50/+42
| |\ \ \ \ \ | | |/ / / / | |/| / / / | | |/ / /
| | * | | fixed problem with embedded servergluh@mysql.com/eagle.(none)2008-02-291-1/+1
| | | | |
| | * | | Bug#32167 another privilege bypass with DATA/INDEX DIRECORY(3rd version for 5.1)gluh@mysql.com/eagle.(none)2008-02-281-50/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | added new function test_if_data_home_dir() which checks that path does not contain mysql data home directory. Using of 'mysql data home'/'any db name' in DATA DIRECTORY & INDEX DIRECTORY is disallowed
| * | | | BUG#25677 - With --skip-symbolic-links option on, DATA DIRECTORYsvoj@mysql.com/june.mysql.com2007-12-071-0/+12
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | clause is silently ignored When symbolic links are disabled by command line option or NO_DIR_IN_CREATE sql mode, CREATE TABLE silently ignores DATA/INDEX DIRECTORY options. With this fix a warning is issued when symbolic links are disabled.
| * | | Merge mysql.com:/home/svoj/devel/mysql/BUG32111/mysql-5.0-enginessvoj@june.mysql.com2007-11-121-4/+4
| |\ \ \ | | |/ / | | | | | | | | into mysql.com:/home/svoj/devel/mysql/BUG32111/mysql-5.1-engines
| | * | Merge mysql.com:/home/svoj/devel/mysql/BUG32111/mysql-4.1-enginessvoj@june.mysql.com2007-11-121-4/+4
| | |\ \ | | | |/ | | | | | | | | into mysql.com:/home/svoj/devel/mysql/BUG32111/mysql-5.0-engines
| | | * symlink.test, symlink.result:svoj@mysql.com/june.mysql.com2007-11-121-4/+4
| | | | | | | | | | | | | | | | Use proper variable for test.
| * | | Merge mysql.com:/home/svoj/devel/mysql/BUG32111/mysql-5.0-enginessvoj@june.mysql.com2007-11-121-0/+12
| |\ \ \ | | |/ / | | | | | | | | into mysql.com:/home/svoj/devel/mysql/BUG32111/mysql-5.1-engines
| | * | Merge mysql.com:/home/svoj/devel/mysql/BUG32111/mysql-4.1-enginessvoj@june.mysql.com2007-11-121-0/+12
| | |\ \ | | | |/ | | | | | | | | into mysql.com:/home/svoj/devel/mysql/BUG32111/mysql-5.0-engines
| | | * Merge mysql.com:/home/svoj/devel/mysql/BUG32111/mysql-4.0svoj@mysql.com/june.mysql.com2007-11-121-0/+12
| | | |\ | | | | | | | | | | | | | | | into mysql.com:/home/svoj/devel/mysql/BUG32111/mysql-4.1-engines
| | | | * BUG#32111 - Security Breach via DATA/INDEX DIRECORY and RENAME TABLEsvoj@mysql.com/june.mysql.com2007-11-061-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | RENAME TABLE against a table with DATA/INDEX DIRECTORY overwrites the file to which the symlink points. This is security issue, because it is possible to create a table with some name in some non-system database and set DATA/INDEX DIRECTORY to mysql system database. Renaming this table to one of mysql system tables (e.g. user, host) would overwrite the system table. Return an error when the file to which the symlink points exist.
| | | * | Valgrind error fixesgluh@mysql.com/eagle.(none)2007-02-011-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: This patch doesn't fix all issues in the tree and we need jani's fix for that This patch shoud not be merged into 5.0
| * | | | symlink.test, symlink.result:gshchepa/uchum@gleb.loc2007-07-141-0/+1
| | | | | | | | | | | | | | | | | | | | Minor fix for test case of bug #29325 to make emb test happy.
| * | | | Merge gleb.loc:/home/uchum/work/bk/5.0-optgshchepa/uchum@gleb.loc2007-07-131-0/+38
| |\ \ \ \ | | |/ / / | | | | | | | | | | into gleb.loc:/home/uchum/work/bk/5.1-opt
| | * | | disabled the output of the full path in tesing bug 29325gkodinov/kgeorge@magare.gmz2007-07-131-0/+2
| | | | |
| | * | | Bug 29325: moved the test from create_not_windows to symlink.gkodinov/kgeorge@magare.gmz2007-07-131-0/+36
| | | | |
| * | | | Fix for valgrind errors in test: require symlink support for ↵tsmith@quadxeon.mysql.com2007-04-251-5/+1
| |/ / / | | | | | | | | | | | | partition_not_windows.test
| * | | Use MYSQLTEST_VARDIR variablemsvensson@maint1.mysql.com2006-12-181-4/+4
| | | |
| * | | Merge siva.hindu.god:/usr/home/tim/m/bk/41tsmith/tim@siva.hindu.god2006-12-141-1/+3
| |\ \ \ | | |/ / | | | | | | | | into siva.hindu.god:/usr/home/tim/m/bk/50
| | * | myisam.result: a test was moved from the .test file, but the results were ↵tsmith/tim@siva.hindu.god2006-12-141-1/+1
| | | | | | | | | | | | | | | | not updated.
| * | | Merge kpdesk.mysql.com:/home/thek/dev/bug17489/my41-bug17498thek@kpdesk.mysql.com2006-12-141-0/+37
| |\ \ \ | | |/ / | | | | | | | | into kpdesk.mysql.com:/home/thek/dev/bug17489/my50-bug17498
| | * | Bug#17498 failed to put data file in custom directory use "data directory" ↵thek@kpdesk.mysql.com2006-12-141-0/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | option - When this bug was corrected it changed the behavior for data/index directory in the myisam test case. - This patch moves the OS depending tests to a non-windows test file.
| * | | Merge neptunus.(none):/home/msvensson/mysql/mysqltest_var/my50-mysqltest_varmsvensson@neptunus.(none)2006-01-241-13/+13
| |\ \ \ | | | | | | | | | | | | | | | into neptunus.(none):/home/msvensson/mysql/mysqltest_var/my50-mysqltest_var-integration