]> andersk Git - openssh.git/commitdiff
- (dtucker) [auth-pam.c] Append newlines to lines output by the
authordtucker <dtucker>
Thu, 13 Nov 2003 00:21:31 +0000 (00:21 +0000)
committerdtucker <dtucker>
Thu, 13 Nov 2003 00:21:31 +0000 (00:21 +0000)
   pam_chauthtok_conv().

ChangeLog
auth-pam.c

index 50936d4d18dfb77be535ac315c58ac461fb44007..ecdd3c5b428802f64fb5cbc87d1cf5705362195e 100644 (file)
--- 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
 
index 3f8a1d8e0713d2eecc108dbf96d8696a0d634050..c2e6e7ca8462dac877f2a32c65b885693afe69e7 100644 (file)
@@ -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:
This page took 0.104895 seconds and 5 git commands to generate.