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

[2018-10] Fix starting process with empty environment incorrectly inherits all variables #11644

Merged
merged 2 commits into from
Nov 15, 2018

Conversation

monojenkins
Copy link
Contributor

This pull request fixes starting a process with an empty environment variable collection in ProcessStartInfo. As per the issue it fixes a regression that it used to work but currently an empty environment variable collection works like it was never touched.

I also made a minor fix to remove the StringBuilder because a simple string.Concat does the job without the StringBuilder allocation and overhead.

I've included unit tests. Please let me know if you'd like any changes.

Fixes #8766

Backport of #11630.

/cc @marek-safar @jonorossi

@akoeplinger akoeplinger merged commit 0539f15 into mono:2018-10 Nov 15, 2018
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.

4 participants