From d922c0a8f5035b0533eb6e912ffd7b85487e3942 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Thu, 27 Jan 2022 13:10:48 -0500 Subject: all: use os/exec instead of internal/execabs We added internal/execabs back in January 2021 in order to fix a security problem caused by os/exec's handling of the current directory. Now that os/exec has that code, internal/execabs is superfluous and can be deleted. This commit rewrites all the imports back to os/exec and deletes internal/execabs. For #43724. Change-Id: Ib9736baf978be2afd42a1225e2ab3fd5d33d19df Reviewed-on: https://go-review.googlesource.com/c/go/+/381375 Run-TryBot: Russ Cox Reviewed-by: Ian Lance Taylor TryBot-Result: Gopher Robot Reviewed-by: Dmitri Shuralyov Auto-Submit: Russ Cox Reviewed-by: Dmitri Shuralyov --- src/cmd/internal/pkgpath/pkgpath.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cmd/internal/pkgpath/pkgpath.go') diff --git a/src/cmd/internal/pkgpath/pkgpath.go b/src/cmd/internal/pkgpath/pkgpath.go index 72e3bdb631..40a040a81a 100644 --- a/src/cmd/internal/pkgpath/pkgpath.go +++ b/src/cmd/internal/pkgpath/pkgpath.go @@ -10,9 +10,9 @@ import ( "bytes" "errors" "fmt" - exec "internal/execabs" "io/ioutil" "os" + "os/exec" "strings" ) -- cgit v1.3-5-g9baa