Commit 14936d40 authored by Roland Shoemaker's avatar Roland Shoemaker Committed by Roland Shoemaker
Browse files

[release-branch.go1.15-security] cmd/go: overwrite program name with full path

If the program path is resolved, replace the first argument of the
exec.Cmd, which is the bare program name with the resolved path.

Change-Id: I92cf5e6f4bb7c8fef9b59f5eab963f4e75b90d07
Reviewed-on: https://team-review.git.corp.google.com/c/golang/go-private/+/957908


Reviewed-by: default avatarKatie Hockman <katiehockman@google.com>
Reviewed-by: default avatarRuss Cox <rsc@google.com>
Reviewed-by: default avatarJay Conrod <jayconrod@google.com>
(cherry picked from commit a863cb56b33a24aad88f23f1d48629dc4b4b9539)
Reviewed-on: https://team-review.git.corp.google.com/c/golang/go-private/+/958254


Reviewed-by: default avatarDmitri Shuralyov <dmitshur@google.com>
parent 07e31952
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment