]> Cypherpunks repositories - gostls13.git/commit
cmd/dist: require absolute path to executable in flattenCommandLine
authorBryan C. Mills <bcmills@google.com>
Tue, 22 Nov 2022 18:45:12 +0000 (13:45 -0500)
committerGopher Robot <gobot@golang.org>
Thu, 26 Jan 2023 23:30:15 +0000 (23:30 +0000)
commit8e0781e5ff0320d8a0cb04dded9aa0ff8f3849cd
tree874fdf738174e9093215474eb43c9cb5b849db65
parent6f6276ce366f0f9cd9748d9c910310e0bc7dc8e5
cmd/dist: require absolute path to executable in flattenCommandLine

This should help to prevent bugs from unintended use of system tools,
especially the system or bootstrap "go" command.
(Suggested by Austin on CL 452678.)

Updates #31567.

Change-Id: I71809ee30d06eda4b5ff8f90656d4f1a462d35dd
Reviewed-on: https://go-review.googlesource.com/c/go/+/452776
Reviewed-by: Austin Clements <austin@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Bryan Mills <bcmills@google.com>
src/cmd/dist/test.go