diff options
author | Rich Felker <dalias@aerifal.cx> | 2014-07-11 00:26:12 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2014-07-11 00:26:12 -0400 |
commit | 349381aa8c0fc385e54e1068dd5f2b27af55cd12 (patch) | |
tree | 9ab097156e1110e2660a1b1636a110154f248665 /src/ldso/dynlink.c | |
parent | 729673689c3e78803ddfdac2ca6be5a5b80e124a (diff) | |
download | musl-349381aa8c0fc385e54e1068dd5f2b27af55cd12.tar.gz musl-349381aa8c0fc385e54e1068dd5f2b27af55cd12.tar.bz2 musl-349381aa8c0fc385e54e1068dd5f2b27af55cd12.tar.xz musl-349381aa8c0fc385e54e1068dd5f2b27af55cd12.zip |
make dynamic linker accept colon as a separator for LD_PRELOAD
Diffstat (limited to 'src/ldso/dynlink.c')
-rw-r--r-- | src/ldso/dynlink.c | 4 |
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); |