Fix bug in linker environment variable lookup.
The linker_env_get() method that is used to match an environment variable was failing due to an incorrect equality check. This was introduced in git change be5755969d70668bbab0e0c0ed75ebd867189723. The bug was causing the linker to ignore environment variables such as LD_LIBRARY_PATH. This issue also affects the linker_env_secure() path that removes unsafe environment variables, since it would not match any in the unsecure variable list. Change-Id: I169024de4a005321e768accd38246fc1d717271b
This commit is contained in:
parent
441d7608b7
commit
b3cdf7fef8
@ -110,7 +110,7 @@ env_match(char* envstr, const char* name)
|
||||
while (envstr[cnt] == name[cnt] && name[cnt] != '\0')
|
||||
cnt++;
|
||||
|
||||
if (name[cnt] != '\0' && envstr[cnt] == '=')
|
||||
if (name[cnt] == '\0' && envstr[cnt] == '=')
|
||||
return envstr + cnt + 1;
|
||||
|
||||
return NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user