diff options
author | des <des@FreeBSD.org> | 2005-06-10 06:16:13 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2005-06-10 06:16:13 +0000 |
commit | 060c66b4a3e1780a9bb4b5bf17cc860cc1decd80 (patch) | |
tree | 6049f949f1c51c23ede1c923d646ad644b4185a5 /lib | |
parent | 2bb8de20fe30f1cc02ae127bd04e473b19e23441 (diff) | |
download | FreeBSD-src-060c66b4a3e1780a9bb4b5bf17cc860cc1decd80.zip FreeBSD-src-060c66b4a3e1780a9bb4b5bf17cc860cc1decd80.tar.gz |
Use appropriate error codes for each facility instead of just PAM_AUTH_ERR.
Noticed by: pjd
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libpam/modules/pam_deny/pam_deny.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libpam/modules/pam_deny/pam_deny.c b/lib/libpam/modules/pam_deny/pam_deny.c index 2c91e26..3d491b1 100644 --- a/lib/libpam/modules/pam_deny/pam_deny.c +++ b/lib/libpam/modules/pam_deny/pam_deny.c @@ -55,7 +55,7 @@ pam_sm_setcred(pam_handle_t *pamh __unused, int flags __unused, int argc __unused, const char *argv[] __unused) { - return (PAM_AUTH_ERR); + return (PAM_CRED_ERR); } PAM_EXTERN int @@ -71,7 +71,7 @@ pam_sm_chauthtok(pam_handle_t *pamh __unused, int flags __unused, int argc __unused, const char *argv[] __unused) { - return (PAM_AUTH_ERR); + return (PAM_AUTHTOK_ERR); } PAM_EXTERN int @@ -79,7 +79,7 @@ pam_sm_open_session(pam_handle_t *pamh __unused, int flags __unused, int argc __unused, const char *argv[] __unused) { - return (PAM_AUTH_ERR); + return (PAM_SESSION_ERR); } PAM_EXTERN int @@ -87,7 +87,7 @@ pam_sm_close_session(pam_handle_t *pamh __unused, int flags __unused, int argc __unused, const char *argv[] __unused) { - return (PAM_AUTH_ERR); + return (PAM_SESSION_ERR); } PAM_MODULE_ENTRY("pam_deny"); |