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

Don't do the symlink if running on Windows
This commit is contained in:
Bjorn Munch 2009-01-20 11:40:10 +01:00
parent 240baba269
commit d734aa7827

View file

@ -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");