summaryrefslogtreecommitdiff
path: root/pam
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2021-03-02 15:10:33 +0100
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2021-03-02 17:15:14 +0100
commitecf6b7c323fd5dd419f869c278e14f48f90e9952 (patch)
treea973b49a775d5ca1c2b416c4fc852c5b44b188f2 /pam
parentdf6ebefef7d9ebbb5aa36e6c5685e67e81fe775e (diff)
pam_fprintd: Just return a PAM_AUTH_ERROR on unknown errors
If something under the hood failed with a generic device error we'd just mark the PAM module not available, this is probably too much as it may just be due to a device temporary error. So make it stop but allow the loading system to retry with it
Diffstat (limited to 'pam')
-rw-r--r--pam/pam_fprintd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pam/pam_fprintd.c b/pam/pam_fprintd.c
index 8cbd01c..64263b8 100644
--- a/pam/pam_fprintd.c
+++ b/pam/pam_fprintd.c
@@ -565,7 +565,7 @@ do_verify (sd_bus *bus,
}
else if (str_equal (data->result, "verify-unknown-error"))
{
- return PAM_AUTHINFO_UNAVAIL;
+ return PAM_AUTH_ERR;
}
else if (str_equal (data->result, "verify-disconnected"))
{