-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
env: always expand PATH vars #15444
env: always expand PATH vars #15444
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems sensible to me
Co-authored-by: Mike Griese <migrie@microsoft.com>
Thanks @sotteson1 for fixing this! Great find! |
Make sure we always expand path env vars, even if they're REG_SZ in the registry. ## Detailed Description of the Pull Request / Additional comments On some systems path vars are REG_SZ instead of REG_EXPAND_SZ. We need to make sure we always expand them. We looked at the system code, and it also makes to sure to always expand them. ## Validation Steps Performed Built locally and made sure the problem went away. Also stepped through in the debugger to make sure things were working correctly. Closes #15442 (cherry picked from commit 709189d) Service-Card-Id: 89337408 Service-Version: 1.18
One might wonder why on some systems path vars are |
|
Make sure we always expand path env vars, even if they're REG_SZ in the registry.
Detailed Description of the Pull Request / Additional comments
On some systems path vars are REG_SZ instead of REG_EXPAND_SZ. We need to make sure we always expand them. We looked at the system code, and it also makes to sure to always expand them.
Validation Steps Performed
Built locally and made sure the problem went away. Also stepped through in the debugger to make sure things were working correctly.
Closes #15442