edk2-edkrepo icon indicating copy to clipboard operation
edk2-edkrepo copied to clipboard

EdkRepo Installer should perform a case-insensitive comparison when searching for the PATH environment variable on Windows

Open nate-desimone opened this issue 6 months ago • 0 comments

The EdkRepo installer does a check to make sure that the Windows directory is contained within the PATH environment variable. However, retrieving the current value of PATH is done via a string comparison with "Path". Since environment variables are case-insensitive on Windows, the environment variable could be named "Path", "path", or "PATH". If "Path" is not found, then EdkRepo will clear and overwrite the current value of the PATH environment variable at a system level. The fix for this issue is to perform a case-insensitive comparison when searching for the PATH environment variable.

nate-desimone avatar Aug 15 '24 22:08 nate-desimone