X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=driver%2Fpasswd-pam.c;h=3b4c64f91bfb584e2c739012c00c72f763275496;hp=334d12b913c83d8d42d7822099d47b727853a86c;hb=de460e831dc8578acfa8b72251ab9346c99c1f96;hpb=6b1c86cf395f59389e4ece4ea8f4bea2c332745b diff --git a/driver/passwd-pam.c b/driver/passwd-pam.c index 334d12b9..3b4c64f9 100644 --- a/driver/passwd-pam.c +++ b/driver/passwd-pam.c @@ -452,6 +452,14 @@ pam_conversation (int nmsgs, ret = si->unlock_cb(nmsgs, messages, &authresp, si); + /* #### If the user times out, or hits ESC or Cancel, we return PAM_CONV_ERR, + and PAM logs this as an authentication failure. It would be nice if + there was some way to indicate that this was a "cancel" rather than + a "fail", so that it wouldn't show up in syslog, but I think the + only options are PAM_SUCCESS and PAM_CONV_ERR. (I think that + PAM_ABORT means "internal error", not "cancel".) Bleh. + */ + if (ret == 0) { for (i = 0; i < nmsgs; ++i)