UNIX sockets need to be on a path shorter than 70 characters on some older platofrms. MTRv1 tries to fix this by moving the socket to the $TMPDIR, however this causes issues with certain tests on Windows. Fixed by not applying any hacks on Windows - Windows does not need them.
This commit is contained in:
commit
1ae3d2ac68
@ -1106,7 +1106,7 @@ sub command_line_setup () {
|
|||||||
# On some operating systems, there is a limit to the length of a
|
# On some operating systems, there is a limit to the length of a
|
||||||
# UNIX domain socket's path far below PATH_MAX, so try to avoid long
|
# UNIX domain socket's path far below PATH_MAX, so try to avoid long
|
||||||
# socket path names.
|
# socket path names.
|
||||||
$sockdir = tempdir(CLEANUP => 0) if ( length($sockdir) >= 70 );
|
$sockdir = tempdir(CLEANUP => 0) if ( length($sockdir) >= 70 ) && (! $glob_win32 );
|
||||||
|
|
||||||
$master->[0]=
|
$master->[0]=
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user