From b96106b7e34ac591ae78b1684e9be3a265122463 Mon Sep 17 00:00:00 2001 From: Duncan Overbruck Date: Mon, 21 Feb 2022 22:01:24 +0100 Subject: [PATCH] pam: always print pam_conv messages to stderr Fixes #95 --- pam.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pam.c b/pam.c index a9e2036..fa483b8 100644 --- a/pam.c +++ b/pam.c @@ -104,8 +104,7 @@ pamconv(int nmsgs, const struct pam_message **msgs, case PAM_ERROR_MSG: case PAM_TEXT_INFO: - if (fprintf(style == PAM_ERROR_MSG ? stderr : stdout, - "%s\n", msgs[i]->msg) < 0) + if (fprintf(stderr, "%s\n", msgs[i]->msg) < 0) goto fail; break;