From c2c0bf77efef5fd0e1cdecb330a9d30de1509ff8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Martin=20Mo=CC=88hrmann?= Date: Sat, 17 Jan 2015 13:37:04 +0100 Subject: [PATCH] net/http/cgi: correctly handle pathnames for cygwin perl on windows Cygwin perl uses unix pathnames in windows. Include cygwin perl in the list of special cases for unix pathname handling in test.cgi. Change-Id: I30445a9cc79d62d022ecc232c35aa5015b7418dc Reviewed-on: https://go-review.googlesource.com/2973 Reviewed-by: Brad Fitzpatrick Reviewed-by: Alex Brainman --- src/net/http/cgi/testdata/test.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net/http/cgi/testdata/test.cgi b/src/net/http/cgi/testdata/test.cgi index 3214df6f00..ec7ee6f386 100755 --- a/src/net/http/cgi/testdata/test.cgi +++ b/src/net/http/cgi/testdata/test.cgi @@ -45,7 +45,7 @@ foreach my $k (sort keys %ENV) { # NOTE: msys perl returns /c/go/src/... not C:\go\.... my $dir = getcwd(); -if ($^O eq 'MSWin32' || $^O eq 'msys') { +if ($^O eq 'MSWin32' || $^O eq 'msys' || $^O eq 'cygwin') { if ($dir =~ /^.:/) { $dir =~ s!/!\\!g; } else { -- 2.50.0