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:
Dag-Erling Smørgrav 2013-03-17 10:56:15 +00:00
parent b501509854
commit 0f25be4e42
1 changed files with 2 additions and 2 deletions

View File

@ -62,8 +62,8 @@ openpam_load_module(const char *modulename)
#ifdef OPENPAM_STATIC_MODULES
/* look for a static module */
if (module == NULL && strchr(path, '/') == NULL) {
module = openpam_static(path);
if (module == NULL && strchr(modulename, '/') == NULL) {
module = openpam_static(modulename);
openpam_log(PAM_LOG_DEBUG, "%s static %s",
(module == NULL) ? "no" : "using", modulename);
}