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:
Dag-Erling Smørgrav 2002-02-01 21:33:58 +00:00
parent ed8e188f27
commit 8c50f570da
1 changed files with 1 additions and 2 deletions

View File

@ -137,8 +137,7 @@ _pam_add_module(pam_handle_t *pamh,
* details of the module cache and linker API from this file.
*/
if ((module->dlh = dlopen(modpath, RTLD_NOW)) == NULL) {
openpam_log(PAM_LOG_ERROR, "%s: dlopen(): %s",
modpath, dlerror());
openpam_log(PAM_LOG_ERROR, "dlopen(): %s", dlerror());
free(module->modpath);
free(module);
return (PAM_OPEN_ERR);