mariadb/mysys
joerg/mysqldev@mysql.com/production.mysql.com 73e7b036c1 BUG#32111 - Security Breach via DATA/INDEX DIRECORY and RENAME TABLE
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.

(This is a copy of changeset 2007/11/06 18:09:33+04:00 svoj@mysql.com
and its merge changesets on the way from 4.0 up to 5.0)
2007-11-15 10:55:47 +01:00
..
.cvsignore
array.c Bug#23736 Pointer free error in mysqlbinlog 2007-03-20 10:34:25 -04:00
base64.c Fixed compiler warnings (for linux and win32 and win64) 2007-02-22 16:59:57 +02:00
ChangeLog Fix skipp -> skip once and for all. 2004-06-03 11:52:54 -05:00
charset-def.c Bug#28916 LDML doesn't work for utf8 2007-06-07 17:55:55 +05:00
charset.c Bug#28875 Conversion between ASCII and LATIN1 charsets does not function 2007-08-03 15:25:23 +05:00
checksum.c Many files: 2006-12-23 20:17:15 +01:00
CMakeLists.txt CMakeLists.txt, README, configure.js 2007-08-03 21:51:37 +02:00
default.c Bug #27390: mysqld_multi --config-file= not working as documented 2007-04-28 01:27:54 +02:00
default_modify.c Many files: 2006-12-23 20:17:15 +01:00
errors.c Many files: 2006-12-23 20:17:15 +01:00
hash.c Merge mysql.com:/home/svoj/devel/mysql/BUG27564/mysql-4.1-engines 2007-07-05 11:45:58 +05:00
list.c Fixed compiler warnings. 2007-03-22 20:32:07 +02:00
make-ccc
make-conf.c Many files: 2006-12-23 20:17:15 +01:00
Makefile.am Makefile.am, CMakeLists.txt: 2007-03-12 14:52:37 +01:00
md5.c Avoid the name conflict between the system-provided "md5.h" and the MySQL one 2007-07-19 14:14:03 +02:00
mf_brkhant.c Many files: 2006-12-23 20:17:15 +01:00
mf_cache.c Many files: 2006-12-23 20:17:15 +01:00
mf_dirname.c Many files: 2006-12-23 20:17:15 +01:00
mf_fn_ext.c Many files: 2006-12-23 20:17:15 +01:00
mf_format.c Many files: 2006-12-23 20:17:15 +01:00
mf_getdate.c Many files: 2006-12-23 20:17:15 +01:00
mf_iocache.c Fixed compiler warnings. 2007-03-22 20:32:07 +02:00
mf_iocache2.c Merge bk-internal.mysql.com:/home/bk/mysql-5.0 2007-01-22 14:04:40 +02:00
mf_keycache.c Bug#28478 - Improper key_cache_block_size corrupts MyISAM tables 2007-05-31 20:04:54 +02:00
mf_keycaches.c Fixed compiler warnings. 2007-03-22 20:32:07 +02:00
mf_loadpath.c Many files: 2006-12-23 20:17:15 +01:00
mf_pack.c Many files: 2006-12-23 20:17:15 +01:00
mf_path.c Many files: 2006-12-23 20:17:15 +01:00
mf_qsort.c Many files: 2006-12-23 20:17:15 +01:00
mf_qsort2.c Many files: 2006-12-23 20:17:15 +01:00
mf_radix.c Many files: 2006-12-23 20:17:15 +01:00
mf_same.c Many files: 2006-12-23 20:17:15 +01:00
mf_sort.c Many files: 2006-12-23 20:17:15 +01:00
mf_soundex.c Many files: 2006-12-23 20:17:15 +01:00
mf_strip.c Many files: 2006-12-23 20:17:15 +01:00
mf_tempdir.c Bug#23736 Pointer free error in mysqlbinlog 2007-03-20 10:34:25 -04:00
mf_tempfile.c avoid using GetTempFileName in a way it's documented to not work on windows 2007-09-27 08:56:06 +02:00
mf_unixpath.c Many files: 2006-12-23 20:17:15 +01:00
mf_util.c Many files: 2006-12-23 20:17:15 +01:00
mf_wcomp.c Many files: 2006-12-23 20:17:15 +01:00
mf_wfile.c Many files: 2006-12-23 20:17:15 +01:00
mulalloc.c Many files: 2006-12-23 20:17:15 +01:00
my_access.c Many files: 2006-12-23 20:17:15 +01:00
my_aes.c my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
my_alarm.c Many files: 2006-12-23 20:17:15 +01:00
my_alloc.c Bug #27322 failure to allocate transaction_prealloc_size causes crash 2007-04-12 18:03:26 -04:00
my_append.c Many files: 2006-12-23 20:17:15 +01:00
my_bit.c Many files: 2006-12-23 20:17:15 +01:00
my_bitmap.c Merge bk-internal.mysql.com:/home/bk/mysql-5.0 2007-01-22 14:04:40 +02:00
my_chsize.c Many files: 2006-12-23 20:17:15 +01:00
my_clock.c Many files: 2006-12-23 20:17:15 +01:00
my_compress.c Many files: 2006-12-23 20:17:15 +01:00
my_conio.c Bug #29469: Client dies if a query is issued after hitting Ctrl + C 2007-07-10 10:43:12 +03:00
my_copy.c Bug #25761 Table is partially created when disk is full, causing database corruption 2007-04-19 13:41:12 -04:00
my_crc32.c Many files: 2006-12-23 20:17:15 +01:00
my_create.c Many files: 2006-12-23 20:17:15 +01:00
my_delete.c Many files: 2006-12-23 20:17:15 +01:00
my_div.c Many files: 2006-12-23 20:17:15 +01:00
my_dup.c Fixed compiler warnings. 2007-03-22 20:32:07 +02:00
my_error.c Fixed bug #20710. 2007-04-29 00:50:33 +05:00
my_file.c Many files: 2006-12-23 20:17:15 +01:00
my_fopen.c Fixed compiler warnings. 2007-03-22 20:32:07 +02:00
my_fstream.c Fixed compiler warnings. 2007-03-22 20:32:07 +02:00
my_gethostbyname.c my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
my_gethwaddr.c my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
my_getopt.c Fixed compiler warnings (for linux and win32 and win64) 2007-02-22 16:59:57 +02:00
my_getpagesize.c Many files: 2006-12-23 20:17:15 +01:00
my_getsystime.c my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
my_getwd.c Fixed compiler warnings. 2007-03-22 20:32:07 +02:00
my_handler.c Merge ua141d10.elisa.omakaista.fi:/home/my/bk/mysql-4.1-main 2007-03-28 20:46:42 +03:00
my_init.c Bug#27597 mysqld-debug broken 2007-05-14 16:04:36 +02:00
my_largepage.c Many files: 2006-12-23 20:17:15 +01:00
my_lib.c Merge ua141d10.elisa.omakaista.fi:/home/my/bk/mysql-4.1-main 2007-03-28 20:46:42 +03:00
my_libwrap.c Many files: 2006-12-23 20:17:15 +01:00
my_lock.c Many files: 2006-12-23 20:17:15 +01:00
my_lockmem.c Many files: 2006-12-23 20:17:15 +01:00
my_lread.c Fixed compiler warnings. 2007-03-22 20:32:07 +02:00
my_lwrite.c Fixed compiler warnings. 2007-03-22 20:32:07 +02:00
my_malloc.c Fix for bug #26844 "Memory allocation failures ignored by slave IO thread". 2007-03-26 13:31:23 +04:00
my_memmem.c my_memmem.c: 2007-04-11 01:47:42 +02:00
my_messnc.c Many files: 2006-12-23 20:17:15 +01:00
my_mkdir.c Many files: 2006-12-23 20:17:15 +01:00
my_mmap.c Many files: 2006-12-23 20:17:15 +01:00
my_net.c Many files: 2006-12-23 20:17:15 +01:00
my_netware.c Many files: 2006-12-23 20:17:15 +01:00
my_new.cc Many files: 2006-12-23 20:17:15 +01:00
my_once.c Many files: 2006-12-23 20:17:15 +01:00
my_open.c Bug#25222 Win32 HANDLE leak in my_sopen() 2007-03-07 10:46:38 -05:00
my_os2cond.c Many files: 2006-12-23 20:17:15 +01:00
my_os2dirsrch.c Many files: 2006-12-23 20:17:15 +01:00
my_os2dirsrch.h Many files: 2006-12-23 20:17:15 +01:00
my_os2dlfcn.c Many files: 2006-12-23 20:17:15 +01:00
my_os2dlfcn.h0 Many files: 2006-12-23 20:17:15 +01:00
my_os2file64.c Many files: 2006-12-23 20:17:15 +01:00
my_os2mutex.c Fixes for Netware 2003-01-28 08:38:28 +02:00
my_os2thread.c Many files: 2006-12-23 20:17:15 +01:00
my_os2tls.c Many files: 2006-12-23 20:17:15 +01:00
my_port.c my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
my_pread.c Fixed compiler warnings. 2007-03-22 20:32:07 +02:00
my_pthread.c Fix a linkage problem with the previous patch for "thr_client_alarm". 2007-02-12 20:13:34 +01:00
my_quick.c Many files: 2006-12-23 20:17:15 +01:00
my_read.c Fixed compiler warnings. 2007-03-22 20:32:07 +02:00
my_realloc.c Fixed compiler warnings. 2007-03-22 20:32:07 +02:00
my_redel.c BUG#25521 - optimize table, delete, show table status leads to table 2007-03-28 21:09:16 +05:00
my_rename.c Many files: 2006-12-23 20:17:15 +01:00
my_seek.c BUG#27141 - Calling tell(-1) under Windows causes assertion failure in Debug mode 2007-06-05 03:16:02 +05:00
my_sleep.c Many files: 2006-12-23 20:17:15 +01:00
my_static.c Fixes for 4.1 to be as in 5.0 and above. 2007-03-27 18:51:02 +03:00
my_static.h Bug#26233 very suspect code in mf_tempfile.c, in function create_temp_file() 2007-03-23 11:01:47 +01:00
my_symlink.c Many files: 2006-12-23 20:17:15 +01:00
my_symlink2.c BUG#32111 - Security Breach via DATA/INDEX DIRECORY and RENAME TABLE 2007-11-15 10:55:47 +01:00
my_sync.c Many files: 2006-12-23 20:17:15 +01:00
my_thr_init.c Fix for Bug#27970 "Fix for bug 24507 makes mysql_install_db fail" 2007-08-16 17:25:48 +03:00
my_wincond.c Bug#25042 OPTIMIZE TABLE cause race condition in IO CACHE SHARE 2007-02-15 14:08:21 +01:00
my_windac.c Many files: 2006-12-23 20:17:15 +01:00
my_winthread.c Many files: 2006-12-23 20:17:15 +01:00
my_write.c Fixed compiler warnings. 2007-03-22 20:32:07 +02:00
mysys_priv.h Many files: 2006-12-23 20:17:15 +01:00
ptr_cmp.c Fixed compiler warnings (for linux and win32 and win64) 2007-02-22 16:59:57 +02:00
queues.c Many files: 2006-12-23 20:17:15 +01:00
raid.cc Merge ua141d10.elisa.omakaista.fi:/home/my/bk/mysql-4.1-main 2007-03-28 20:46:42 +03:00
raid2.c Many files: 2006-12-23 20:17:15 +01:00
rijndael.c my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
safemalloc.c Fix for bug #26844 "Memory allocation failures ignored by slave IO thread". 2007-03-26 13:31:23 +04:00
sha1.c Merge bk-internal.mysql.com:/home/bk/mysql-5.0 2007-01-22 14:04:40 +02:00
string.c Merge recycle.(none):/src/bug22807/my50-bug22807 2007-01-19 13:20:52 -05:00
test_charset.c Many files: 2006-12-23 20:17:15 +01:00
test_dir.c Many files: 2006-12-23 20:17:15 +01:00
test_fn.c Many files: 2006-12-23 20:17:15 +01:00
test_xml.c Many files: 2006-12-23 20:17:15 +01:00
testhash.c Many files: 2006-12-23 20:17:15 +01:00
thr_alarm.c Merge sergbook.mysql.com:/usr/home/serg/Abk/mysql-4.1 2007-03-23 20:39:34 +02:00
thr_lock.c Fix for bug #21281 "Pending write lock is incorrectly removed when its 2007-08-05 13:17:07 +04:00
thr_mutex.c Many files: 2006-12-23 20:17:15 +01:00
thr_rwlock.c Many files: 2006-12-23 20:17:15 +01:00
tree.c Fixed compiler warnings. 2007-03-22 20:32:07 +02:00
typelib.c Fixed compiler warnings. 2007-03-22 20:32:07 +02:00