aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'modules/pam_unix/pam_unix.c~')
-rw-r--r--modules/pam_unix/pam_unix.c~12
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/pam_unix/pam_unix.c~ b/modules/pam_unix/pam_unix.c~
index a1ab562..d70693d 100644
--- a/modules/pam_unix/pam_unix.c~
+++ b/modules/pam_unix/pam_unix.c~
@@ -193,7 +193,7 @@ pam_sm_acct_mgmt(pam_handle_t *pamh, int flags ,
lc = login_getpwclass(pwd);
if (lc == NULL) {
- PAM_ERR("Unable to get login class for user [%s]");
+ PAM_ERROR("Unable to get login class for user [%s]");
return (PAM_SERVICE_ERR);
}
#endif
@@ -206,10 +206,10 @@ pam_sm_acct_mgmt(pam_handle_t *pamh, int flags ,
#ifndef __linux__
login_close(lc);
#endif
- PAM_ERR("Account has expired!");
+ PAM_ERROR("Account has expired!");
return (PAM_ACCT_EXPIRED);
} else if ( ( pwd->sp_expire - curtime < DEFAULT_WARN) ) {
- PAM_ERR(pamh, "Warning: your account expires on %s",
+ PAM_ERROR(pamh, "Warning: your account expires on %s",
ctime(&pwd->sp_expire));
}
}
@@ -223,13 +223,13 @@ pam_sm_acct_mgmt(pam_handle_t *pamh, int flags ,
if ((curtime > (pwd->sp_lstchg + pwd->sp_max + pwd->sp_inact)) &&
(pwd->sp_max != -1) && (pwd->sp_inact != -1) &&
(pwd->sp_lstchg != 0)) {
- PAM_ERR("Account has expired!");
+ PAM_ERROR("Account has expired!");
return (PAM_ACCT_EXPIRED);
}
if (((pwd->sp_lstchg + pwd->sp_max) < curtime) &&
(pwd->sp_max != -1)) {
- PAM_ERR("Account has expired!");
+ PAM_ERROR("Account has expired!");
return (PAM_ACCT_EXPIRED);
}
@@ -237,7 +237,7 @@ pam_sm_acct_mgmt(pam_handle_t *pamh, int flags ,
&& (curtime - pwd->sp_lstchg > pwd->sp_inact)
&& (curtime - pwd->sp_lstchg > pwd->sp_max + pwd->sp_inact)
&& (pwd->sp_max != -1) && (pwd->sp_inact != -1)) {
- PAM_ERR("Account has expired!");
+ PAM_ERROR("Account has expired!");
return (PAM_ACCT_EXPIRED);
}