Blame SOURCES/PyPAM-dlopen.patch

fbd8a4
diff --git a/PAMmodule.c.orig b/PAMmodule.c
fbd8a4
index f6730f1..7276415 100644
fbd8a4
--- a/PAMmodule.c.orig
fbd8a4
+++ b/PAMmodule.c
fbd8a4
@@ -149,8 +149,8 @@ static PyObject * PyPAM_pam(PyObject *self, PyObject *args)
fbd8a4
     Py_INCREF(Py_None);
fbd8a4
     p->user_data = Py_None;
fbd8a4
     
fbd8a4
-    p->dlh1 = dlopen("libpam.so", RTLD_LAZY | RTLD_GLOBAL);
fbd8a4
-    p->dlh2 = dlopen("libpam_misc.so", RTLD_LAZY | RTLD_GLOBAL);
fbd8a4
+    p->dlh1 = dlopen("libpam.so.0", RTLD_LAZY | RTLD_GLOBAL);
fbd8a4
+    p->dlh2 = dlopen("libpam_misc.so.0", RTLD_LAZY | RTLD_GLOBAL);
fbd8a4
 
fbd8a4
     return (PyObject *) p;
fbd8a4
 }