From: Rich Felker Date: Fri, 11 Jul 2014 04:26:12 +0000 (-0400) Subject: make dynamic linker accept colon as a separator for LD_PRELOAD X-Git-Tag: v1.1.4~55 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=349381aa8c0fc385e54e1068dd5f2b27af55cd12;p=oweals%2Fmusl.git make dynamic linker accept colon as a separator for LD_PRELOAD --- diff --git a/src/ldso/dynlink.c b/src/ldso/dynlink.c index 55124ff8..6b7f0f31 100644 --- a/src/ldso/dynlink.c +++ b/src/ldso/dynlink.c @@ -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);