about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2014-07-11 00:26:12 -0400
committerRich Felker <dalias@aerifal.cx>2014-07-11 00:26:12 -0400
commit349381aa8c0fc385e54e1068dd5f2b27af55cd12 (patch)
tree9ab097156e1110e2660a1b1636a110154f248665
parent729673689c3e78803ddfdac2ca6be5a5b80e124a (diff)
downloadmusl-349381aa8c0fc385e54e1068dd5f2b27af55cd12.tar.gz
musl-349381aa8c0fc385e54e1068dd5f2b27af55cd12.tar.xz
musl-349381aa8c0fc385e54e1068dd5f2b27af55cd12.zip
make dynamic linker accept colon as a separator for LD_PRELOAD
-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 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);