net/http/cgi: merge upstream changes to default env vars
authorNikhil Benesch <nikhil.benesch@gmail.com>
Wed, 21 Oct 2020 07:00:04 +0000 (03:00 -0400)
committerIan Lance Taylor <iant@golang.org>
Fri, 23 Oct 2020 23:55:57 +0000 (16:55 -0700)
commit27f7ab27d1a514eaf538ae01840b42c6d12cb28f
tree564a0a1cc8fd82243a4410e55b5134006edcadeb
parentd835608f05471e749533c756ccdd9e166b819b68
net/http/cgi: merge upstream changes to default env vars

Incorporate upstream modifications to the cgi package's set of rules
about which environment variables should be inherited by child processes
by default on each platform. In particular this permits tests to pass on
NetBSD by preserving the value of the LD_LIBRARY_PATH environment
variable.

This is a partial backport of the following upstream CLs:

    https://golang.org/cl/263802
    https://golang.org/cl/263577
    https://golang.org/cl/254740

Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/264097
gcc/go/gofrontend/MERGE
libgo/go/net/http/cgi/host.go