mirror of git://git.musl-libc.org/musl
make dynamic linker accept colon as a separator for LD_PRELOAD
This commit is contained in:
parent
729673689c
commit
349381aa8c
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue