mirror of
https://git.musl-libc.org/git/musl
synced 2025-01-09 08:12:02 +03:00
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
Block a user