diff options
| author | Russ Cox <rsc@golang.org> | 2022-07-27 14:36:05 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2022-07-28 19:12:40 +0000 |
| commit | 027855e8d86f461b50946b006ea032d4b4a7d817 (patch) | |
| tree | cc6bbabb15481f4d669f835c946bfbcf7c2c6313 /src/os/exec/exec.go | |
| parent | 462b78fe7027ef0d2e2b40c3cfd1f5a37d307310 (diff) | |
| download | go-027855e8d86f461b50946b006ea032d4b4a7d817.tar.xz | |
os/exec: add GODEBUG setting to opt out of ErrDot changes
The changes are likely to break users, and we need
to make it easy to unbreak without code changes.
For #43724.
Fixes #53962.
Change-Id: I105c5d6c801d354467e0cefd268189c18846858e
Reviewed-on: https://go-review.googlesource.com/c/go/+/419794
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/os/exec/exec.go')
| -rw-r--r-- | src/os/exec/exec.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/os/exec/exec.go b/src/os/exec/exec.go index 57d18420bb..737aaab6a7 100644 --- a/src/os/exec/exec.go +++ b/src/os/exec/exec.go @@ -80,6 +80,11 @@ // log.Fatal(err) // } // +// Setting the environment variable GODEBUG=execerrdot=0 +// disables generation of ErrDot entirely, temporarily restoring the pre-Go 1.19 +// behavior for programs that are unable to apply more targeted fixes. +// A future version of Go may remove support for this variable. +// // Before adding such overrides, make sure you understand the // security implications of doing so. // See https://go.dev/blog/path-security for more information. |
