提交 349381aa 编写于 作者: R Rich Felker

make dynamic linker accept colon as a separator for LD_PRELOAD

上级 72967368
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册