Skip to content

Commit bedf7de

Browse files
committed
hack/test-port-forwarding.pl: use cygpath to host socket on nc -w
Signed-off-by: Norio Nomura <norio.nomura@gmail.com>
1 parent b723249 commit bedf7de

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

hack/test-port-forwarding.pl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,9 @@
169169
# Try to reach each listener from the host
170170
foreach my $test (@test) {
171171
next if $test->{host_port} == $sshLocalPort;
172+
if ($test->{host_socket} ne "" && $Config{osname} eq "MSWin32") {
173+
$test->{host_socket} = qx(cygpath $test->{host_socket});
174+
}
172175
my $nc = $test->{host_socket} eq "" ? "nc -w 1 $test->{host_ip} $test->{host_port}" : "nc -w 1 -U $test->{host_socket}";
173176
open(my $netcat, "| $nc") or die "Can't run '$nc': $!";
174177
print $netcat "$test->{log_msg}\n";

0 commit comments

Comments
 (0)