diff options
author | Andreas Jaeger <aj@suse.de> | 2001-01-23 09:29:53 +0000 |
---|---|---|
committer | Andreas Jaeger <aj@suse.de> | 2001-01-23 09:29:53 +0000 |
commit | b0ed91aecf0184aaa8ace2dc0e32ae318cfac7b4 (patch) | |
tree | a6cdb7af12e99585af9b79225da220bf04f8cf28 /elf | |
parent | ecf525cdd773f314895374542c2168fda0483c26 (diff) | |
download | glibc-b0ed91aecf0184aaa8ace2dc0e32ae318cfac7b4.zip glibc-b0ed91aecf0184aaa8ace2dc0e32ae318cfac7b4.tar.gz glibc-b0ed91aecf0184aaa8ace2dc0e32ae318cfac7b4.tar.bz2 |
Update.
* elf/dl-load.c (_dl_init_paths): Don't use strdupa in function
arguments. Reported by Jiri Kubicek <kubicek@bitsmart.com>,
closes PR libc/2039.
Diffstat (limited to 'elf')
-rw-r--r-- | elf/dl-load.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/elf/dl-load.c b/elf/dl-load.c index b18089c..e8112b1 100644 --- a/elf/dl-load.c +++ b/elf/dl-load.c @@ -667,6 +667,7 @@ _dl_init_paths (const char *llp) { size_t nllp; const char *cp = llp; + char *llp_tmp = strdupa (llp); /* Decompose the LD_LIBRARY_PATH contents. First determine how many elements it has. */ @@ -684,7 +685,7 @@ _dl_init_paths (const char *llp) _dl_signal_error (ENOMEM, NULL, N_("cannot create cache for search path")); - (void) fillin_rpath (strdupa (llp), env_path_list.dirs, ":;", + (void) fillin_rpath (llp_tmp, env_path_list.dirs, ":;", __libc_enable_secure, "LD_LIBRARY_PATH", NULL); if (env_path_list.dirs[0] == NULL) |