aboutsummaryrefslogtreecommitdiff
path: root/modules/pam_tally2/pam_tally2.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/pam_tally2/pam_tally2.c')
-rw-r--r--modules/pam_tally2/pam_tally2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/pam_tally2/pam_tally2.c b/modules/pam_tally2/pam_tally2.c
index 5924edf9..faa6942e 100644
--- a/modules/pam_tally2/pam_tally2.c
+++ b/modules/pam_tally2/pam_tally2.c
@@ -351,7 +351,7 @@ get_tally(pam_handle_t *pamh, uid_t uid, const char *filename,
umask(oldmask);
if ( !*tfile ) {
#ifndef MAIN
- if (save_errno == EPERM) {
+ if (save_errno == EACCES) {
return PAM_IGNORE; /* called with insufficient access rights */
}
#endif
@@ -380,7 +380,7 @@ get_tally(pam_handle_t *pamh, uid_t uid, const char *filename,
if (!(*tfile = fopen(filename, "r+"))) {
#ifndef MAIN
- if (errno == EPERM) /* called with insufficient access rights */
+ if (errno == EACCES) /* called with insufficient access rights */
return PAM_IGNORE;
#endif
pam_syslog(pamh, LOG_ALERT, "Error opening %s for update: %m", filename);