From: Nikhil Benesch Date: Mon, 19 Oct 2020 01:55:55 +0000 (-0400) Subject: net/http/cgi: preserve LD_LIBRARY_PATH on NetBSD, too X-Git-Tag: go1.16beta1~653 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=55b2d479d774d9887a6ec32b34e2c413f7c84f78;p=gostls13.git 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 TryBot-Result: Go Bot Reviewed-by: Benny Siegert Reviewed-by: Tobias Klauser Trust: Benny Siegert --- 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"}