Changeset 932 in openpam for trunk/lib/libpam/pam_setcred.c


Ignore:
Timestamp:
Apr 26, 2017, 8:41:59 PM (4 years ago)
Author:
Dag-Erling Smørgrav
Message:

Add two more error codes for situations where we used PAM_SYMBOL_ERR.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/libpam/pam_setcred.c

    r648 r932  
    6262        if (flags & ~(PAM_SILENT|PAM_ESTABLISH_CRED|PAM_DELETE_CRED|
    6363                PAM_REINITIALIZE_CRED|PAM_REFRESH_CRED))
    64                 RETURNC(PAM_SYMBOL_ERR);
     64                RETURNC(PAM_BAD_CONSTANT);
    6565        /* XXX enforce exclusivity */
    6666        r = openpam_dispatch(pamh, PAM_SM_SETCRED, flags);
     
    7474 *      =pam_sm_setcred
    7575 *      !PAM_IGNORE
    76  *      PAM_SYMBOL_ERR
     76 *      PAM_BAD_CONSTANT
    7777 */
    7878
     
    9696 * The latter four are mutually exclusive.
    9797 *
    98  * If any other bits are set, =pam_setcred will return =PAM_SYMBOL_ERR.
     98 * If any other bits are set, =pam_setcred will return =PAM_BAD_CONSTANT.
    9999 */
Note: See TracChangeset for help on using the changeset viewer.