From af14f69c40868d02ecbf0997862aee3dfede51b5 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Thu, 13 Dec 2007 00:51:01 +0000 Subject: [PATCH] Only pass paths to directories or config files that exist for ldconfig for 32-bit binaries. MFC after: 3 days --- etc/rc.d/ldconfig | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/etc/rc.d/ldconfig b/etc/rc.d/ldconfig index d4191594e201..b8a54988a9ff 100755 --- a/etc/rc.d/ldconfig +++ b/etc/rc.d/ldconfig @@ -49,8 +49,14 @@ ldconfig_start() fi fi done - echo '32-bit compatibility ldconfig path:' ${ldconfig32_paths} - ${ldconfig} -32 -m ${_ins} ${ldconfig32_paths} + _LDC="" + for i in ${ldconfig32_paths}; do + if [ -r "${i}" ]; then + _LDC="${_LDC} ${i}" + fi + done + echo '32-bit compatibility ldconfig path:' ${_LDC} + ${ldconfig} -32 -m ${_ins} ${_LDC} ;; esac