Commit 788968a6 authored by unknown's avatar unknown
Browse files

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
parent e78a1931
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1868,6 +1868,11 @@ sub kill_running_servers () {

    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 processes that mtr_kill_leftovers start will write
      # their log files to var/log so it should be created