aboutsummaryrefslogtreecommitdiff
path: root/elf/rtld.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/rtld.c')
-rw-r--r--elf/rtld.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/elf/rtld.c b/elf/rtld.c
index 28c9fd796e..39435f8243 100644
--- a/elf/rtld.c
+++ b/elf/rtld.c
@@ -1,5 +1,5 @@
/* Run time dynamic linker.
- Copyright (C) 1995, 1996 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -316,12 +316,13 @@ of this helper program; chances are you did not intend to run this program.\n",
const char *preloadlist = getenv ("LD_PRELOAD");
if (preloadlist)
{
- /* The LD_PRELOAD environment variable gives a colon-separated
- list of libraries that are loaded before the executable's
- dependencies and prepended to the global scope list. */
+ /* The LD_PRELOAD environment variable gives a white space
+ separated list of libraries that are loaded before the
+ executable's dependencies and prepended to the global
+ scope list. */
char *list = strdupa (preloadlist);
char *p;
- while ((p = strsep (&list, ":")) != NULL)
+ while ((p = strsep (&list, " ")) != NULL)
{
(void) _dl_map_object (NULL, p, lt_library, 0);
++npreloads;