Skip to content

Fix cmd.script bg=True deleting tempfile before child runs - #69967

Open
twangboy wants to merge 2 commits into
saltstack:3006.xfrom
twangboy:fix/69959/3006.x
Open

Fix cmd.script bg=True deleting tempfile before child runs#69967
twangboy wants to merge 2 commits into
saltstack:3006.xfrom
twangboy:fix/69959/3006.x

Conversation

@twangboy

@twangboy twangboy commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Keep the script available for background PowerShell/cmd/POSIX runs via a self-cleaning wrapper, then remove it after exit.

What issues does this PR fix or reference?

Fixes #69959
Fixes #50273

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

Yes

@twangboy
twangboy requested a review from a team as a code owner August 6, 2026 21:16
@twangboy twangboy added Tests test:full Run the full test suite and removed Tests labels Aug 6, 2026
@twangboy twangboy added this to the Sulphur v3006.28 milestone Aug 6, 2026
@twangboy twangboy linked an issue Aug 6, 2026 that may be closed by this pull request
Keep the script available for background PowerShell/cmd/POSIX runs
via a self-cleaning wrapper, then remove it after exit. Refs saltstack#69959 saltstack#50273
Do not exec the real script from the /bin/sh wrapper; exec replaces the
shell and skips the EXIT trap, leaving the tempfile behind. Refs saltstack#69959 saltstack#50273
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:full Run the full test suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Saltstack onedir powershell -File param

1 participant