Commit 8096efa7 authored by Bjorn Munch's avatar Bjorn Munch

Bug #41420 MTR fails on windows with "The symlink function is unimplemented"

Don't do the symlink if running on Windows
parent f70f527c
......@@ -2442,7 +2442,8 @@ sub setup_vardir() {
mkpath("$opt_vardir/tmp");
mkpath($opt_tmpdir) if $opt_tmpdir ne "$opt_vardir/tmp";
if ($master->[0]->{'path_sock'} !~ m/^$opt_tmpdir/)
# Set up link to master sock if not in var/tmp (not on Windows)
if (! $glob_win32 && $master->[0]->{'path_sock'} !~ m/^$opt_tmpdir/)
{
mtr_report("Symlinking $master->[0]->{'path_sock'}");
symlink($master->[0]->{'path_sock'}, "$opt_tmpdir/master.sock");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment