From 194ebcb05456a9e564de1ae834f6528db68ae44c Mon Sep 17 00:00:00 2001 From: Markus Makela Date: Mon, 6 Oct 2014 15:13:18 +0300 Subject: [PATCH] Fix to bug 567(http://bugs.mariadb.com/show_bug.cgi?id=567) log_manager.cc: if the file exists, is a symbolic link and is not writable, the log manager does not fail but unlinks it and creates a new one. --- log_manager/log_manager.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/log_manager/log_manager.cc b/log_manager/log_manager.cc index f690661b6..24db3b8a5 100644 --- a/log_manager/log_manager.cc +++ b/log_manager/log_manager.cc @@ -2169,8 +2169,7 @@ static bool logfile_init( if (!writable || !file_is_symlink(logfile->lf_full_link_name)) { - nameconflicts = true; - goto file_create_fail; + unlink(logfile->lf_full_link_name); } } }