From 0227568209c83e1789a056b14932520d280d2c2f Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Thu, 4 Apr 2002 04:54:44 +0000 Subject: Also look for libinsure.so where the full version installs it. (This used to be commit 2bf6595a2a5527ff64f9083f2434aa344c9637d9) --- source3/lib/util.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source3') diff --git a/source3/lib/util.c b/source3/lib/util.c index d8bc17221e..7e2ad49639 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -2201,6 +2201,11 @@ int _Insure_trap_error(int a1, int a2, int a3, int a4, int a5, int a6) static void *h; h = dlopen("/usr/local/parasoft/insure++lite/lib.linux2/libinsure.so", RTLD_LAZY); fn = dlsym(h, "_Insure_trap_error"); + + if (!h || h == _Insure_trap_error) { + h = dlopen("/usr/local/parasoft/lib.linux2/libinsure.so", RTLD_LAZY); + fn = dlsym(h, "_Insure_trap_error"); + } } ret = fn(a1, a2, a3, a4, a5, a6); -- cgit