It turns out dlerror() already includes the module's full path
in the error message. Avoid logging it twice. Sponsored by: DARPA, NAI Labs git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@12 185d5e19-27fe-0310-9dcf-9bff6b9f3609
This commit is contained in:
parent
ed8e188f27
commit
8c50f570da
|
@ -137,8 +137,7 @@ _pam_add_module(pam_handle_t *pamh,
|
||||||
* details of the module cache and linker API from this file.
|
* details of the module cache and linker API from this file.
|
||||||
*/
|
*/
|
||||||
if ((module->dlh = dlopen(modpath, RTLD_NOW)) == NULL) {
|
if ((module->dlh = dlopen(modpath, RTLD_NOW)) == NULL) {
|
||||||
openpam_log(PAM_LOG_ERROR, "%s: dlopen(): %s",
|
openpam_log(PAM_LOG_ERROR, "dlopen(): %s", dlerror());
|
||||||
modpath, dlerror());
|
|
||||||
free(module->modpath);
|
free(module->modpath);
|
||||||
free(module);
|
free(module);
|
||||||
return (PAM_OPEN_ERR);
|
return (PAM_OPEN_ERR);
|
||||||
|
|
Loading…
Reference in New Issue