Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12:GA
python-pam
PyPAM-0.5.0-dl.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File PyPAM-0.5.0-dl.patch of Package python-pam
Index: PAMmodule.c =================================================================== --- PAMmodule.c.orig +++ PAMmodule.c @@ -149,8 +149,15 @@ static PyObject * PyPAM_pam(PyObject *se Py_INCREF(Py_None); p->user_data = Py_None; - p->dlh1 = dlopen("libpam.so", RTLD_LAZY | RTLD_GLOBAL); - p->dlh2 = dlopen("libpam_misc.so", RTLD_LAZY | RTLD_GLOBAL); + if( !(p->dlh1 = dlopen("libpam.so.0", RTLD_LAZY | RTLD_GLOBAL)) ) { + PyErr_SetString(PyPAM_Error, dlerror()); + return NULL; + } + + if ( !(p->dlh2 = dlopen("libpam_misc.so.0", RTLD_LAZY | RTLD_GLOBAL)) ) { + PyErr_SetString(PyPAM_Error, dlerror()); + return NULL; + } return (PyObject *) p; }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor