Changeset 61 in openpam


Ignore:
Timestamp:
Feb 18, 2002, 12:26:17 PM (16 years ago)
Author:
Dag-Erling Smørgrav
Message:

The proper use of PAM_SYMBOL_ERR is to indicate an invalid argument
to pam_[gs]et_item(3).

Sponsored by: DARPA, NAI Labs

Location:
trunk/lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/pam_get_item.c

    r38 r61  
    7070                return (PAM_SUCCESS);
    7171        default:
    72                 return (PAM_SYSTEM_ERR);
     72                return (PAM_SYMBOL_ERR);
    7373        }
    7474}
  • trunk/lib/pam_set_item.c

    r55 r61  
    8989                break;
    9090        default:
    91                 return (PAM_SYSTEM_ERR);
     91                return (PAM_SYMBOL_ERR);
    9292        }
    9393        if (*slot != NULL) {
  • trunk/lib/pam_strerror.c

    r35 r61  
    6262                return ("failed to load module");
    6363        case PAM_SYMBOL_ERR:
    64                 return ("symbol not found in module");
     64                return ("invalid symbol");
    6565        case PAM_SERVICE_ERR:
    6666                return ("error in service module");
Note: See TracChangeset for help on using the changeset viewer.