commit | 349381aa8c0fc385e54e1068dd5f2b27af55cd12 | [log] [tgz] |
---|---|---|
author | Rich Felker <dalias@aerifal.cx> | Fri Jul 11 00:26:12 2014 -0400 |
committer | Rich Felker <dalias@aerifal.cx> | Fri Jul 11 00:26:12 2014 -0400 |
tree | 9ab097156e1110e2660a1b1636a110154f248665 | |
parent | 729673689c3e78803ddfdac2ca6be5a5b80e124a [diff] [blame] |
make dynamic linker accept colon as a separator for LD_PRELOAD
diff --git a/src/ldso/dynlink.c b/src/ldso/dynlink.c index 55124ff..6b7f0f3 100644 --- a/src/ldso/dynlink.c +++ b/src/ldso/dynlink.c
@@ -862,8 +862,8 @@ 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);