nit: the argument is a module name, which may or may not be a path.

git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@661 185d5e19-27fe-0310-9dcf-9bff6b9f3609
This commit is contained in:
Dag-Erling Smørgrav 2013-03-11 15:44:22 +00:00
parent fe2e691204
commit 2b8f7a6154
1 changed files with 5 additions and 5 deletions

View File

@ -52,24 +52,24 @@
*/
pam_module_t *
openpam_load_module(const char *path)
openpam_load_module(const char *modulename)
{
pam_module_t *module;
module = openpam_dynamic(path);
module = openpam_dynamic(modulename);
openpam_log(PAM_LOG_DEBUG, "%s dynamic %s",
(module == NULL) ? "no" : "using", path);
(module == NULL) ? "no" : "using", modulename);
#ifdef OPENPAM_STATIC_MODULES
/* look for a static module */
if (module == NULL && strchr(path, '/') == NULL) {
module = openpam_static(path);
openpam_log(PAM_LOG_DEBUG, "%s static %s",
(module == NULL) ? "no" : "using", path);
(module == NULL) ? "no" : "using", modulename);
}
#endif
if (module == NULL) {
openpam_log(PAM_LOG_ERROR, "no %s found", path);
openpam_log(PAM_LOG_ERROR, "no %s found", modulename);
return (NULL);
}
return (module);