FreeBSD Bugzilla – Attachment 246272 Details for
Bug 275031
rc.d/ldconfig missing hard-coded /lib/casper from rtld-elf STANDARD_LIBRARY_PATH
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
rc.d/ldconfig: Prepend rtld stdlib paths to ldconfig(32)_paths
patch-libexec_rc_rc.d_ldconfig.txt (text/plain), 1.39 KB, created by
John W. O'Brien
on 2023-11-13 15:33:13 UTC
(
hide
)
Description:
rc.d/ldconfig: Prepend rtld stdlib paths to ldconfig(32)_paths
Filename:
MIME Type:
Creator:
John W. O'Brien
Created:
2023-11-13 15:33:13 UTC
Size:
1.39 KB
patch
obsolete
>From 3cbd1e7ff53fc3ab79f9675b756ea437500f2eb6 Mon Sep 17 00:00:00 2001 >From: "John W. O'Brien" <john@saltant.com> >Date: Sun, 12 Nov 2023 17:45:27 -0500 >Subject: [PATCH] rc.d/ldconfig: Prepend rtld stdlib paths to > ldconfig(32)_paths > >Ensure that ldconfig-managed elf and elf32 hints always include >the standard library paths that are known independently to rtld. > >PR: 275031 >Reviewed by: kib >MFC after: 2 weeks >Sponsored by: Saltant Solutions LLC >Differential Revision: https://reviews.freebsd.org/D42557 >--- > libexec/rc/rc.d/ldconfig | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >diff --git a/libexec/rc/rc.d/ldconfig b/libexec/rc/rc.d/ldconfig >index 178a8a987..ecbbca210 100755 >--- a/libexec/rc/rc.d/ldconfig >+++ b/libexec/rc/rc.d/ldconfig >@@ -22,7 +22,7 @@ ldconfig_start() > ldconfig=${ldconfig_command} > checkyesno ldconfig_insecure && _ins="-i" > if [ -x "${ldconfig_command}" ]; then >- _LDC="/lib /usr/lib" >+ _LDC=$(/libexec/ld-elf.so.1 -v | sed -n -e '/^Default lib path /s///p' | tr : ' ') > for i in ${ldconfig_local_dirs}; do > if [ -d "${i}" ]; then > _files=`find ${i} -type f` >@@ -52,6 +52,9 @@ ldconfig_start() > fi > done > _LDC="" >+ if [ -x /libexec/ld-elf32.so.1 ]; then >+ _LDC=$(/libexec/ld-elf32.so.1 -v | sed -n -e '/^Default lib path /s///p' | tr : ' ') >+ fi > for i in ${ldconfig32_paths}; do > if [ -r "${i}" ]; then > _LDC="${_LDC} ${i}" >-- >2.42.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
john
:
maintainer-approval?
(
kib
)
Actions:
View
|
Diff
Attachments on
bug 275031
:
246246
|
246247
|
246263
|
246264
| 246272