From: Martin Möhrmann Date: Sat, 17 Jan 2015 12:37:04 +0000 (+0100) Subject: net/http/cgi: correctly handle pathnames for cygwin perl on windows X-Git-Tag: go1.5beta1~2325 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c2c0bf77efef5fd0e1cdecb330a9d30de1509ff8;p=gostls13.git 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 --- 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 {