From cb61a2a11f68af35dbeeb5f835e0c85f45b9d998 Mon Sep 17 00:00:00 2001 From: Santiago De la Cruz <51337247+xhit@users.noreply.github.com> Date: Mon, 11 May 2020 00:09:42 -0400 Subject: [PATCH] os/exec: escape percent literal for Windows PATH Fix #38994 --- src/os/exec/lp_windows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os/exec/lp_windows.go b/src/os/exec/lp_windows.go index 9ea3d765757b64..869b2508a76cc1 100644 --- a/src/os/exec/lp_windows.go +++ b/src/os/exec/lp_windows.go @@ -12,7 +12,7 @@ import ( ) // ErrNotFound is the error resulting if a path search failed to find an executable file. -var ErrNotFound = errors.New("executable file not found in %PATH%") +var ErrNotFound = errors.New("executable file not found in %%PATH%%") func chkStat(file string) error { d, err := os.Stat(file)