Skip to content

[Backport release-0.x] Preserve PATH when running commands in an empty env#310

Merged
kke merged 1 commit intok0sproject:release-0.xfrom
twz123:preserve-path-0.21
Apr 21, 2026
Merged

[Backport release-0.x] Preserve PATH when running commands in an empty env#310
kke merged 1 commit intok0sproject:release-0.xfrom
twz123:preserve-path-0.21

Conversation

@twz123
Copy link
Copy Markdown
Member

@twz123 twz123 commented Apr 13, 2026

@twz123 twz123 force-pushed the preserve-path-0.21 branch from 95df0c5 to 6029f3a Compare April 13, 2026 14:50
@twz123 twz123 marked this pull request as ready for review April 13, 2026 15:02
Some stat and touch helpers run in an empty environment to avoid locale-dependent
output, but that also clears PATH. This may fail on systems that don't use standard paths.

Preserve PATH, even when clearing out the rest of the environment.

Signed-off-by: Tom Wieczorek <twieczorek@mirantis.com>
(cherry picked from commit 991ef3e)
@twz123 twz123 force-pushed the preserve-path-0.21 branch from 6029f3a to 6b6f2b8 Compare April 21, 2026 12:42
@kke kke merged commit a373856 into k0sproject:release-0.x Apr 21, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants