projects/oracle-lib-compat/tomcat-setenv.sh | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 42eba5234a9c2ce5f724c78819507493f6a87c9d
Author: Jan Pazdziora <jpazdziora(a)redhat.com>
Date: Wed May 4 15:58:48 2011 +0200
We unset LD_PRELOAD to force ldd to show the libldap line with => even if
LD_PRELOAD was already set.
diff --git a/projects/oracle-lib-compat/tomcat-setenv.sh
b/projects/oracle-lib-compat/tomcat-setenv.sh
index bb181a3..ee14820 100644
--- a/projects/oracle-lib-compat/tomcat-setenv.sh
+++ b/projects/oracle-lib-compat/tomcat-setenv.sh
@@ -3,6 +3,8 @@
# in libclntsh.so* upon tomcat5 startup with those from standard library.
for i in /lib64/security/pam_ldap.so /lib/security/pam_ldap.so ; do
if [ -f $i ] ; then
+ # to force ldd to show the libldap line with => even if LD_PRELOAD was already set
+ unset LD_PRELOAD
export LD_PRELOAD=`ldd $i | perl -lne '/^\s+libldap\S+\s+=>\s+(\S+)/ and print
$1 and exit'`
break
fi
Show replies by date