summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Möhrmann <martisch@uos.de>2015-01-17 13:37:04 +0100
committerAlex Brainman <alex.brainman@gmail.com>2015-01-17 22:51:55 +0000
commitc2c0bf77efef5fd0e1cdecb330a9d30de1509ff8 (patch)
tree4f99afd1ec26bc1efd8f532c36fc312d61d3fee2
parentc3b459d328fefabe877368d907d3f2e10b44a506 (diff)
downloadgo-git-c2c0bf77efef5fd0e1cdecb330a9d30de1509ff8.tar.gz
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 <bradfitz@golang.org> Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
-rwxr-xr-xsrc/net/http/cgi/testdata/test.cgi2
1 files changed, 1 insertions, 1 deletions
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 {