]> Cypherpunks.ru repositories - gostls13.git/commitdiff
net/http/cgi: preserve LD_LIBRARY_PATH on NetBSD, too
authorNikhil Benesch <nikhil.benesch@gmail.com>
Mon, 19 Oct 2020 01:55:55 +0000 (21:55 -0400)
committerTobias Klauser <tobias.klauser@gmail.com>
Tue, 20 Oct 2020 08:08:15 +0000 (08:08 +0000)
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>

src/net/http/cgi/host.go

index 624044aa09231fde75fc683e6c29439fadc77f65..cd42f4d921866499aa61492422e5623f67c21dd8 100644 (file)
@@ -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"}