From 74117b26ca10256e44e5ccb8ad01afae4a004ac5 Mon Sep 17 00:00:00 2001 From: dtucker Date: Thu, 13 Nov 2003 00:21:31 +0000 Subject: [PATCH] - (dtucker) [auth-pam.c] Append newlines to lines output by the pam_chauthtok_conv(). --- ChangeLog | 4 ++++ auth-pam.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 50936d4d..ecdd3c5b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +20031113 + - (dtucker) [auth-pam.c] Append newlines to lines output by the + pam_chauthtok_conv(). + 20031106 - (djm) Clarify UsePAM consequences a little more diff --git a/auth-pam.c b/auth-pam.c index 3f8a1d8e..c2e6e7ca 100644 --- a/auth-pam.c +++ b/auth-pam.c @@ -636,14 +636,14 @@ pam_chauthtok_conv(int n, const struct pam_message **msg, reply[i].resp_retcode = PAM_SUCCESS; break; case PAM_PROMPT_ECHO_ON: - fputs(PAM_MSG_MEMBER(msg, i, msg), stderr); + fprintf(stderr, "%s\n", PAM_MSG_MEMBER(msg, i, msg)); fgets(input, sizeof input, stdin); reply[i].resp = xstrdup(input); reply[i].resp_retcode = PAM_SUCCESS; break; case PAM_ERROR_MSG: case PAM_TEXT_INFO: - fputs(PAM_MSG_MEMBER(msg, i, msg), stderr); + fprintf(stderr, "%s\n", PAM_MSG_MEMBER(msg, i, msg)); reply[i].resp_retcode = PAM_SUCCESS; break; default: -- 2.45.1