Purpose of commit: bugfix
Commit summary:
---------------
2008-12-12 Tomas Mraz <t8m@centrum.cz>
* modules/pam_tally2/pam_tally2.c (get_tally): Test for EACCES
instead of EPERM.
* modules/pam_tally2/pam_tally2.8.xml: Fix documentation.
+2008-12-12 Tomas Mraz <t8m@centrum.cz>
+
+ * modules/pam_tally2/pam_tally2.c (get_tally): Test for EACCES
+ instead of EPERM.
+ * modules/pam_tally2/pam_tally2.8.xml: Fix documentation.
+
2008-12-10 Thorsten Kukuk <kukuk@thkukuk.de>
* doc/man/pam_item_types_ext.inc.xml: Document PAM_AUTHTOK_TYPE.
xscreensaver. As this would make it impossible to share PAM configuration
with such services the following workaround is used: If the data file
cannot be opened because of insufficient permissions
- (<errorcode>EPERM</errorcode>) the module returns
+ (<errorcode>EACCES</errorcode>) the module returns
<errorcode>PAM_IGNORE</errorcode>.
</para>
</refsect1>
umask(oldmask);
if ( !*tfile ) {
#ifndef MAIN
- if (save_errno == EPERM) {
+ if (save_errno == EACCES) {
return PAM_IGNORE; /* called with insufficient access rights */
}
#endif
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);