From 6bf1bc558c2d170fce17e1ee571267372ac19639 Mon Sep 17 00:00:00 2001 From: Nathan Nye Date: Sun, 10 Oct 2021 03:53:44 +0000 Subject: [PATCH] Stability cont. --- src/library/platforms/linux/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/library/platforms/linux/mod.rs b/src/library/platforms/linux/mod.rs index ef31b56..3140304 100644 --- a/src/library/platforms/linux/mod.rs +++ b/src/library/platforms/linux/mod.rs @@ -270,14 +270,14 @@ unsafe extern "C" fn la_symbind64(sym: *const libc::Elf64_Sym, _ndx: libc::c_uin if (*refcook) == 0 { return (*(sym)).st_value as usize; } - // FIXME: Hacks around Python/libcrypto issue: (python dlopen/openssl_fopen used by python/curl) + // FIXME: Hacks around Python/rsyslog/libcrypto issue: (python dlopen/dlopen/openssl_fopen used by python/rsyslog/curl respectively) if (calling_library_basename_str == "libcrypto.so.1.1") && (symbol_str == "fopen64") { return (*(sym)).st_value as usize; } if symbol_str == "dlopen" { if let Ok(exe) = std::env::current_exe() { if let Ok(exe_string) = exe.into_os_string().into_string() { - if exe_string.starts_with("/usr/bin/python") { return (*(sym)).st_value as usize; } + if exe_string.starts_with("/usr/bin/python") || exe_string == String::from("/usr/sbin/rsyslogd") { return (*(sym)).st_value as usize; } } } }