make dynamic linker accept colon as a separator for LD_PRELOAD

This commit is contained in:
Rich Felker 2014-07-11 00:26:12 -04:00
parent 729673689c
commit 349381aa8c
1 changed files with 2 additions and 2 deletions

View File

@ -862,8 +862,8 @@ static void load_preload(char *s)
int tmp;
char *z;
for (z=s; *z; s=z) {
for ( ; *s && isspace(*s); s++);
for (z=s; *z && !isspace(*z); z++);
for ( ; *s && (isspace(*s) || *s==':'); s++);
for (z=s; *z && !isspace(*z) && *z!=':'; z++);
tmp = *z;
*z = 0;
load_library(s, 0);