mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
If "var" is a symlink which does not point to anything, remove it before creating real var
mysql-test/mysql-test-run.pl: If "var" is a symlink which does not point to anything, remove it
This commit is contained in:
@ -1868,6 +1868,11 @@ sub kill_running_servers () {
|
|||||||
|
|
||||||
if ( ! -d $opt_vardir )
|
if ( ! -d $opt_vardir )
|
||||||
{
|
{
|
||||||
|
if ( -l $opt_vardir and ! -d readlink($opt_vardir) )
|
||||||
|
{
|
||||||
|
mtr_report("Removing $opt_vardir symlink without destination");
|
||||||
|
unlink($opt_vardir);
|
||||||
|
}
|
||||||
# The "var" dir does not exist already
|
# The "var" dir does not exist already
|
||||||
# the processes that mtr_kill_leftovers start will write
|
# the processes that mtr_kill_leftovers start will write
|
||||||
# their log files to var/log so it should be created
|
# their log files to var/log so it should be created
|
||||||
|
Reference in New Issue
Block a user