diff options
author | Rich Felker <dalias@aerifal.cx> | 2014-07-11 00:26:12 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2014-07-28 00:27:59 -0400 |
commit | 147cd60d4da59b99963e480c811f746c853bd589 (patch) | |
tree | 0b77d671b52872476f69a7984bfd4d8e710cf1fe /src/ldso/dynlink.c | |
parent | 5b589c54922eaffe0feb9300b328445db965df8c (diff) | |
download | musl-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.c | 4 |
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); |