From 8c50f570da6c305f957c30f1321ea7626e2ec424 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Fri, 1 Feb 2002 21:33:58 +0000 Subject: [PATCH] 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 --- lib/pam_start.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/pam_start.c b/lib/pam_start.c index 235d19e..a032069 100644 --- a/lib/pam_start.c +++ b/lib/pam_start.c @@ -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);