]> Cypherpunks repositories - gostls13.git/commitdiff
net/http/cgi: preserve env vars on illumos
authorTobias Klauser <tklauser@distanz.ch>
Tue, 20 Oct 2020 11:36:57 +0000 (13:36 +0200)
committerTobias Klauser <tobias.klauser@gmail.com>
Tue, 20 Oct 2020 14:04:18 +0000 (14:04 +0000)
Preserve the same environment variables as on solaris.

Spotted while reviewing CL 263577.

Change-Id: Id479dcf83d6231e9ef1fd2404b400d10082e1d0b
Reviewed-on: https://go-review.googlesource.com/c/go/+/263802
Trust: Tobias Klauser <tobias.klauser@gmail.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com>
src/net/http/cgi/host.go

index cd42f4d921866499aa61492422e5623f67c21dd8..eff67caf4e6efbe242129f768898acbd1f95741b 100644 (file)
@@ -45,7 +45,7 @@ var osDefaultInheritEnv = func() []string {
                return []string{"LD_LIBRARY_PATH", "SHLIB_PATH"}
        case "irix":
                return []string{"LD_LIBRARY_PATH", "LD_LIBRARYN32_PATH", "LD_LIBRARY64_PATH"}
-       case "solaris":
+       case "illumos", "solaris":
                return []string{"LD_LIBRARY_PATH", "LD_LIBRARY_PATH_32", "LD_LIBRARY_PATH_64"}
        case "windows":
                return []string{"SystemRoot", "COMSPEC", "PATHEXT", "WINDIR"}