Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

child: add extra args in correct order #7727

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pbrezina
Copy link
Member

Previously, the arguments where added in backwards order. Insted:
-A -B -C value it appened value -C -B -A, which caused issues with
value arguments.

This commit refactors the code to add all arguments in natural order
starting from argv[0]..argv[argc] instead of attempting to create argv
from the end argv[argc]..argv[0] which can easily create confusion.

Also switched to talloc_zero_array() to handle NULL more intuitively.

Previously, the arguments where added in backwards order. Insted:
`-A -B -C value` it appened `value -C -B -A`, which caused issues with
value arguments.

This commit refactors the code to add all arguments in natural order
starting from argv[0]..argv[argc] instead of attempting to create argv
from the end argv[argc]..argv[0] which can easily create confusion.

Also switched to talloc_zero_array() to handle NULL more intuitively.
@pbrezina
Copy link
Member Author

This is required to make #7678 working.

@pbrezina
Copy link
Member Author

As we agreed, we will do #7678 first and this one will land only the master branch. Setting blocked.

@pbrezina pbrezina marked this pull request as draft November 28, 2024 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Blocked no-backport This should go to target branch only.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants