Blame SOURCES/glibc-rh1540480-2.patch
|
|
25845f |
commit bb195224acc14724e9fc2dbaa8d0b20b72ace79b
|
|
|
25845f |
Author: Dmitry V. Levin <ldv@altlinux.org>
|
|
|
25845f |
Date: Sun Dec 17 23:49:46 2017 +0000
|
|
|
25845f |
|
|
|
25845f |
elf: do not substitute dst in $LD_LIBRARY_PATH twice [BZ #22627]
|
|
|
25845f |
|
|
|
25845f |
Index: glibc-2.17-c758a686/elf/dl-load.c
|
|
|
25845f |
===================================================================
|
|
|
25845f |
--- glibc-2.17-c758a686.orig/elf/dl-load.c
|
|
|
25845f |
+++ glibc-2.17-c758a686/elf/dl-load.c
|
|
|
25845f |
@@ -829,25 +829,7 @@ _dl_init_paths (const char *llp)
|
|
|
25845f |
|
|
|
25845f |
if (llp != NULL && *llp != '\0')
|
|
|
25845f |
{
|
|
|
25845f |
- char *llp_tmp;
|
|
|
25845f |
-
|
|
|
25845f |
-#ifdef SHARED
|
|
|
25845f |
- /* Expand DSTs. */
|
|
|
25845f |
- size_t cnt = DL_DST_COUNT (llp, 1);
|
|
|
25845f |
- if (__builtin_expect (cnt == 0, 1))
|
|
|
25845f |
- llp_tmp = strdupa (llp);
|
|
|
25845f |
- else
|
|
|
25845f |
- {
|
|
|
25845f |
- /* Determine the length of the substituted string. */
|
|
|
25845f |
- size_t total = DL_DST_REQUIRED (l, llp, strlen (llp), cnt);
|
|
|
25845f |
-
|
|
|
25845f |
- /* Allocate the necessary memory. */
|
|
|
25845f |
- llp_tmp = (char *) alloca (total + 1);
|
|
|
25845f |
- llp_tmp = _dl_dst_substitute (l, llp, llp_tmp, 1);
|
|
|
25845f |
- }
|
|
|
25845f |
-#else
|
|
|
25845f |
- llp_tmp = strdupa (llp);
|
|
|
25845f |
-#endif
|
|
|
25845f |
+ char *llp_tmp = strdupa (llp);
|
|
|
25845f |
|
|
|
25845f |
/* Decompose the LD_LIBRARY_PATH contents. First determine how many
|
|
|
25845f |
elements it has. */
|