Skip to content
Snippets Groups Projects
Commit ee39a93c authored by ju1ius's avatar ju1ius
Browse files

removes init $PATH checks from trustore_linux.go

Inspecting the PATH is not reliable since it can change when running
sudo.

Closes #23
parent 1dbd4728
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment