summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikhil Benesch <nikhil.benesch@gmail.com>2020-10-18 21:55:55 -0400
committerTobias Klauser <tobias.klauser@gmail.com>2020-10-20 08:08:15 +0000
commit55b2d479d774d9887a6ec32b34e2c413f7c84f78 (patch)
tree0f4980fde73f2f3a260cd3c81f9bd7383213aee5
parent310984bf54a52b15085e195a402873ab558d34d4 (diff)
downloadgo-git-55b2d479d774d9887a6ec32b34e2c413f7c84f78.tar.gz
net/http/cgi: preserve LD_LIBRARY_PATH on NetBSD, too
This makes the behavior of the cgi package on NetBSD consistent with its behavior on the other BSDs. It is also necessary for the test suite to pass on NetBSD with gccgo (see CL 261137). Change-Id: I531a6e0954f895a921204dcc61e3f3e90860a23d Reviewed-on: https://go-review.googlesource.com/c/go/+/263577 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Benny Siegert <bsiegert@gmail.com> Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com> Trust: Benny Siegert <bsiegert@gmail.com>
-rw-r--r--src/net/http/cgi/host.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/http/cgi/host.go b/src/net/http/cgi/host.go
index 624044aa09..cd42f4d921 100644
--- a/src/net/http/cgi/host.go
+++ b/src/net/http/cgi/host.go
@@ -39,7 +39,7 @@ var osDefaultInheritEnv = func() []string {
switch runtime.GOOS {
case "darwin", "ios":
return []string{"DYLD_LIBRARY_PATH"}
- case "linux", "freebsd", "openbsd":
+ case "linux", "freebsd", "netbsd", "openbsd":
return []string{"LD_LIBRARY_PATH"}
case "hpux":
return []string{"LD_LIBRARY_PATH", "SHLIB_PATH"}