make dynamic linker accept colon as a separator for LD_PRELOAD
authorRich Felker <dalias@aerifal.cx>
Fri, 11 Jul 2014 04:26:12 +0000 (00:26 -0400)
committerRich Felker <dalias@aerifal.cx>
Fri, 11 Jul 2014 04:26:12 +0000 (00:26 -0400)
src/ldso/dynlink.c

index 55124ff828a6fd2673793ca421951337c9bdb2ed..6b7f0f31a70eaaf384a49b500946aa22bf4248c4 100644 (file)
@@ -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);