Skip to content

Commit

Permalink
WSL Pro Service: Fix comment about WSLPATH being hard-coded
Browse files Browse the repository at this point in the history
  • Loading branch information
EduardGomezEscandell committed Oct 16, 2023
1 parent 50e173e commit f7cc18a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wsl-pro-service/internal/system/landscape.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ func overrideSSLCertificate(ctx context.Context, s *System, data *ini.File) erro
pathWindows := k.String()

cmd, args := s.backend.WslpathExecutable("-ua", pathWindows)
//nolint:gosec // In production code, these variables are hard-coded (except for the path).
//nolint:gosec // In production code, the executable (wslpath) is hardcoded.
out, err := exec.CommandContext(ctx, cmd, args...).CombinedOutput()
if err != nil {
return fmt.Errorf("could not translate SSL certificate path %q to a WSL path: %v: %s", pathWindows, err, out)
Expand Down

0 comments on commit f7cc18a

Please sign in to comment.