unbreak static linking
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@664 185d5e19-27fe-0310-9dcf-9bff6b9f3609
This commit is contained in:
parent
b501509854
commit
0f25be4e42
|
@ -62,8 +62,8 @@ openpam_load_module(const char *modulename)
|
||||||
|
|
||||||
#ifdef OPENPAM_STATIC_MODULES
|
#ifdef OPENPAM_STATIC_MODULES
|
||||||
/* look for a static module */
|
/* look for a static module */
|
||||||
if (module == NULL && strchr(path, '/') == NULL) {
|
if (module == NULL && strchr(modulename, '/') == NULL) {
|
||||||
module = openpam_static(path);
|
module = openpam_static(modulename);
|
||||||
openpam_log(PAM_LOG_DEBUG, "%s static %s",
|
openpam_log(PAM_LOG_DEBUG, "%s static %s",
|
||||||
(module == NULL) ? "no" : "using", modulename);
|
(module == NULL) ? "no" : "using", modulename);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue