Skip to content

Preserve PATH when running commands in an empty env - #309

Merged
kke merged 1 commit into
k0sproject:mainfrom
twz123:preserve-path
Apr 13, 2026
Merged

kke merged 1 commit into
k0sproject:mainfrom
twz123:preserve-path

Conversation

@twz123

@twz123 twz123 commented Apr 13, 2026

Copy link
Copy Markdown
Member

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.

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>
@kke
kke merged commit 991ef3e into k0sproject:main Apr 13, 2026
11 checks passed
@twz123
twz123 deleted the preserve-path branch April 13, 2026 14:50
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