Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use golang.org/x/sys/execabs instead of os/exec
On Windows, the os/exec.{Command,CommandContext,LookPath} functions resolve command names that have neither path separators nor file extension (e.g., "git") by first looking in the current working directory before looking in the PATH environment variable. Go maintainers intended to match cmd.exe's historical behavior. However, this is pretty much never the intended behavior and as an abundance of precaution this patch prevents that when executing commands. This patch was prompted by the [Go 1.15.7 security fixes](https://blog.golang.org/path-security). Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
- Loading branch information