Skip to content

Conversation

@craigcomstock
Copy link
Contributor

The issue was that the entire command line was sent and the '&' which should be a command separator was instead being interpreted as another argument.

This caused the argument parser to try and interpret '&' as the filename as in this special syntax: "cf-agent " and since there is more text after '&' in the existing cfruncommand value the "Too many arguments" error is caused.

Ticket: ENT-13530
Changelog: title
(cherry picked from commit d9238b2)

@craigcomstock craigcomstock changed the title Fixed cfruncommand for Windows causing "Too many arguments" error Fixed cfruncommand for Windows causing "Too many arguments" error (3.21) Nov 25, 2025
The issue was that the entire command line was sent and the '&' which should be a command separator was instead being interpreted as another argument.

This caused the argument parser to try and interpret '&' as the filename as in this special syntax: "cf-agent <policy-file>" and since there is more text after '&' in the existing cfruncommand value the "Too many arguments" error is caused.

Ticket: ENT-13530
Changelog: title
(cherry picked from commit d9238b2)
@craigcomstock craigcomstock merged commit 568c8c9 into cfengine:3.21.x Nov 25, 2025
3 checks passed
@craigcomstock craigcomstock deleted the ent-13530/3.21 branch November 25, 2025 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant