Skip to content

os/exec: modifications to Path ignored when *Cmd is created using Command with an absolute path on Windows [1.22 backport] #68331

Closed
@gopherbot

Description

@gopherbot

@dmitshur requested issue #68314 to be considered for backport to the next 1.22 minor release.

@gopherbot Please backport to Go 1.22. Only Go 1.22 needs the fix, as this isn't an issue in Go 1.2​1.

This is a regression that can cause wrong binaries to be executed on Windows, with no workaround other than changing user code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions