]> Cypherpunks.ru repositories - gostls13.git/commitdiff
net/http/cgi: correctly handle pathnames for cygwin perl on windows
authorMartin Möhrmann <martisch@uos.de>
Sat, 17 Jan 2015 12:37:04 +0000 (13:37 +0100)
committerAlex Brainman <alex.brainman@gmail.com>
Sat, 17 Jan 2015 22:51:55 +0000 (22:51 +0000)
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>
src/net/http/cgi/testdata/test.cgi

index 3214df6f004556377cf5eb6336e4d9d3495c5f99..ec7ee6f38641cdf55a6e937bf1e80b4116f12b39 100755 (executable)
@@ -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 {