From: dtucker Date: Thu, 13 Nov 2003 00:21:31 +0000 (+0000) Subject: - (dtucker) [auth-pam.c] Append newlines to lines output by the X-Git-Tag: V_3_8_P1~176 X-Git-Url: http://andersk.mit.edu/gitweb/openssh.git/commitdiff_plain/74117b26ca10256e44e5ccb8ad01afae4a004ac5 - (dtucker) [auth-pam.c] Append newlines to lines output by the pam_chauthtok_conv(). --- 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: