projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7296736
)
make dynamic linker accept colon as a separator for LD_PRELOAD
author
Rich Felker
<dalias@aerifal.cx>
Fri, 11 Jul 2014 04:26:12 +0000
(
00:26
-0400)
committer
Rich Felker
<dalias@aerifal.cx>
Fri, 11 Jul 2014 04:26:12 +0000
(
00:26
-0400)
src/ldso/dynlink.c
patch
|
blob
|
history
diff --git
a/src/ldso/dynlink.c
b/src/ldso/dynlink.c
index 55124ff828a6fd2673793ca421951337c9bdb2ed..6b7f0f31a70eaaf384a49b500946aa22bf4248c4 100644
(file)
--- 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);