From db46cd0890057be1f72173a2ca2ae040bcf46c9a Mon Sep 17 00:00:00 2001
From: Jakub Jelen <jjelen@redhat.com>
Date: Wed, 31 Jul 2019 12:20:42 +0200
Subject: [PATCH] pam_sss: Add missing colon to the PIN prompt
This can be noticed in the sudo prompt, when the system is configured
to authenticate users using smart cards.
Resolves: Pagure#4049
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Sumit Bose <sbose@redhat.com>
---
src/sss_client/pam_sss.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/sss_client/pam_sss.c b/src/sss_client/pam_sss.c
index 6bcda23da..cfd3e3731 100644
--- a/src/sss_client/pam_sss.c
+++ b/src/sss_client/pam_sss.c
@@ -1609,7 +1609,7 @@ static int prompt_2fa_single(pam_handle_t *pamh, struct pam_items *pi,
return PAM_SUCCESS;
}
-#define SC_PROMPT_FMT "PIN for %s"
+#define SC_PROMPT_FMT "PIN for %s: "
#ifndef discard_const
#define discard_const(ptr) ((void *)((uintptr_t)(ptr)))
--
2.20.1