From ee39a93c3b327b348fab7b9f4579c1fffd46d8dd Mon Sep 17 00:00:00 2001 From: ju1ius Date: Sat, 21 Oct 2023 16:25:22 +0200 Subject: [PATCH] removes init $PATH checks from trustore_linux.go Inspecting the PATH is not reliable since it can change when running sudo. Closes #23 --- truststore_linux.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/truststore_linux.go b/truststore_linux.go index 6d79c6d..03bb269 100644 --- a/truststore_linux.go +++ b/truststore_linux.go @@ -44,12 +44,6 @@ func init() { SystemTrustFilename = "/etc/ssl/certs/%s.crt" SystemTrustCommand = []string{"trust", "extract-compat"} } - if SystemTrustCommand != nil { - _, err := exec.LookPath(SystemTrustCommand[0]) - if err != nil { - SystemTrustCommand = nil - } - } } func pathExists(path string) bool {