mirror of
https://github.com/znc/znc.git
synced 2026-05-07 22:04:46 +02:00
Explicitly set RTLD_LOCAL, some systems require it - thanks x-x
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@738 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
+1
-4
@@ -675,10 +675,7 @@ bool CModules::LoadModule(const CString& sModule, const CString& sArgs, CUser* p
|
||||
}
|
||||
|
||||
unsigned int uDLFlags = RTLD_LAZY;
|
||||
|
||||
if (!pUser) {
|
||||
uDLFlags |= RTLD_GLOBAL;
|
||||
}
|
||||
uDLFlags |= (pUser) ? RTLD_LOCAL : RTLD_GLOBAL;
|
||||
|
||||
void* p = dlopen((sModPath).c_str(), uDLFlags);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user