about summary refs log tree commit diff
path: root/src/ldso/dynlink.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2014-07-11 00:26:12 -0400
committerRich Felker <dalias@aerifal.cx>2014-07-28 00:27:59 -0400
commit147cd60d4da59b99963e480c811f746c853bd589 (patch)
tree0b77d671b52872476f69a7984bfd4d8e710cf1fe /src/ldso/dynlink.c
parent5b589c54922eaffe0feb9300b328445db965df8c (diff)
downloadmusl-147cd60d4da59b99963e480c811f746c853bd589.tar.gz
musl-147cd60d4da59b99963e480c811f746c853bd589.tar.xz
musl-147cd60d4da59b99963e480c811f746c853bd589.zip
make dynamic linker accept colon as a separator for LD_PRELOAD
(cherry picked from commit 349381aa8c0fc385e54e1068dd5f2b27af55cd12)
Diffstat (limited to 'src/ldso/dynlink.c')
-rw-r--r--src/ldso/dynlink.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ldso/dynlink.c b/src/ldso/dynlink.c
index a1bdf0fb..6d265b35 100644
--- a/src/ldso/dynlink.c
+++ b/src/ldso/dynlink.c
@@ -737,8 +737,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);