Skip to content

Comments

Replace calls to system() with new run_process() helper.#8940

Merged
alexreinking merged 4 commits intomainfrom
cleanup/system
Feb 13, 2026
Merged

Replace calls to system() with new run_process() helper.#8940
alexreinking merged 4 commits intomainfrom
cleanup/system

Conversation

@alexreinking
Copy link
Member

system() is just one of those functions that makes me shiver. I noticed it while working on #8939

Replace all uses of system() with a new run_process() helper that consults the PATH, but doesn't shell out.

Copy link
Contributor

@shoaibkamil shoaibkamil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm surprised we only used system() in so few cases. Good idea to use something safer.

Copy link
Contributor

@mcourteaux mcourteaux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for clarifications! 😄

@alexreinking
Copy link
Member Author

Hey look, a green PR!

@alexreinking alexreinking merged commit 492309e into main Feb 13, 2026
17 checks passed
@alexreinking alexreinking deleted the cleanup/system branch February 13, 2026 22:32
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.

3 participants