Changeset 53 in openpam


Ignore:
Timestamp:
Feb 13, 2002, 12:43:57 AM (16 years ago)
Author:
Dag-Erling Smørgrav
Message:

Log a debug message before calling the service function.

Accept PAM_SUCCESS and PAM_ABORT as valid return codes, even though
the normal code path will not call _openpam_check_error_code() if
the module returns one of them.

Sponsored by: DARPA, NAI Labs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/openpam_dispatch.c

    r33 r53  
    9090        /* execute */
    9191        for (err = fail = 0; chain != NULL; chain = chain->next) {
     92                openpam_log(PAM_LOG_DEBUG, "calling %s() in %s",
     93                    _pam_sm_func_name[primitive], chain->module->path);
    9294                if (chain->module->func[primitive] == NULL) {
    9395                        openpam_log(PAM_LOG_ERROR, "%s: no %s()",
     
    152154{
    153155        /* common error codes */
    154         if (r == PAM_SERVICE_ERR ||
    155             r == PAM_BUF_ERR ||
     156        if (r == PAM_SUCCESS ||
     157            r == PAM_SERVICE_ERR ||
    156158            r == PAM_BUF_ERR ||
    157159            r == PAM_CONV_ERR ||
    158             r == PAM_PERM_DENIED)
     160            r == PAM_PERM_DENIED ||
     161            r == PAM_ABORT)
    159162                return;
    160163
Note: See TracChangeset for help on using the changeset viewer.