Changeset 127 in openpam for trunk/lib


Ignore:
Timestamp:
Apr 15, 2002, 8:30:42 AM (17 years ago)
Author:
Dag-Erling Smørgrav
Message:

Additional debugging messages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/openpam_dynamic.c

    r94 r127  
    3232 * SUCH DAMAGE.
    3333 *
    34  * $P4: //depot/projects/openpam/lib/openpam_dynamic.c#3 $
     34 * $P4: //depot/projects/openpam/lib/openpam_dynamic.c#4 $
    3535 */
    3636
     
    6565                goto buf_err;
    6666        if ((dlh = dlopen(vpath, RTLD_NOW)) == NULL) {
     67                openpam_log(PAM_LOG_DEBUG, "%s: %s", vpath, dlerror());
    6768                *strrchr(vpath, '.') = '\0';
    6869                if ((dlh = dlopen(vpath, RTLD_NOW)) == NULL) {
     70                        openpam_log(PAM_LOG_DEBUG, "%s: %s", vpath, dlerror());
    6971                        free(module);
    7072                        return (NULL);
     
    7577                goto buf_err;
    7678        module->dlh = dlh;
    77         for (i = 0; i < PAM_NUM_PRIMITIVES; ++i)
     79        for (i = 0; i < PAM_NUM_PRIMITIVES; ++i) {
    7880                module->func[i] = dlsym(dlh, _pam_sm_func_name[i]);
     81                if (module->func[i] == NULL)
     82                        openpam_log(PAM_LOG_DEBUG, "%s: %s(): %s",
     83                            vpath, _pam_sm_func_name[i], dlerror());
     84        }
    7985        return (module);
    8086 buf_err:
Note: See TracChangeset for help on using the changeset viewer.