]> Cypherpunks repositories - gostls13.git/commit
os/exec: avoid calling LookPath in cmd.Start for resolved paths
authorBryan C. Mills <bcmills@google.com>
Wed, 13 Sep 2023 16:02:52 +0000 (12:02 -0400)
committerGopher Robot <gobot@golang.org>
Wed, 13 Sep 2023 19:38:12 +0000 (19:38 +0000)
commitf7f266c88598398dcf32b448bcea2100e1702630
tree397327cb23f9dec662d2f85a6c95cf34b845616b
parent07d4de9312aef72d1bd7427316a2ac21b83e4a20
os/exec: avoid calling LookPath in cmd.Start for resolved paths

This reapplies CL 512155, which was previously reverted in CL 527337.
The race that prompted the revert should be fixed by CL 527820,
which will be submitted before this one.

For #36768.
Updates #62596.

Change-Id: I3c3cd92470254072901b6ef91c0ac52c8071e0a2
Cq-Include-Trybots: luci.golang.try:gotip-linux-amd64-race,gotip-windows-amd64-race,gotip-windows-amd64-longtest
Reviewed-on: https://go-review.googlesource.com/c/go/+/528038
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
src/os/exec/exec.go
src/os/exec/lp_plan9.go
src/os/exec/lp_unix.go
src/os/exec/lp_wasm.go
src/os/exec/lp_windows.go
src/os/exec/lp_windows_test.go