diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2020-10-20 13:36:57 +0200 |
---|---|---|
committer | Tobias Klauser <tobias.klauser@gmail.com> | 2020-10-20 14:04:18 +0000 |
commit | 0709e58bee0b268ee2a11629f44e352c41339443 (patch) | |
tree | 6419a3ca0269c08437dc6c3b3178b7f5d4322303 /src/net | |
parent | feb984c96b10900daade4b47c4d308d7dd4ed5c3 (diff) | |
download | go-0709e58bee0b268ee2a11629f44e352c41339443.tar.gz go-0709e58bee0b268ee2a11629f44e352c41339443.zip |
net/http/cgi: preserve env vars on illumos
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>
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/http/cgi/host.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/http/cgi/host.go b/src/net/http/cgi/host.go index cd42f4d921..eff67caf4e 100644 --- a/src/net/http/cgi/host.go +++ b/src/net/http/cgi/host.go @@ -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"} |