Skip to content

Commit

Permalink
removes init $PATH checks from trustore_linux.go
Browse files Browse the repository at this point in the history
Inspecting the PATH is not reliable since it can change when running
sudo.

Closes #23
  • Loading branch information
ju1ius committed Oct 21, 2023
1 parent 1dbd472 commit ee39a93
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions truststore_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit ee39a93

Please sign in to comment.