Index: session.c
===================================================================
RCS file: /usr/local/src/security/openssh/cvs/openssh_cvs/session.c,v
retrieving revision 1.281
diff -u -p -r1.281 session.c
--- session.c	13 May 2004 06:39:34 -0000	1.281
+++ session.c	16 Jun 2004 03:01:53 -0000
@@ -193,15 +193,20 @@ auth_input_request_forwarding(struct pas
 	return 1;
 }
 
+/*
+ * Display login message to user.  Note that it is the responsibility of
+ * the code appending to loginmsg to ensure that the message has whatever
+ * newlines it needs.
+ */
 static void
 display_loginmsg(void)
 {
 	if (buffer_len(&loginmsg) > 0) {
 		buffer_append(&loginmsg, "\0", 1);
-		printf("%s\n", (char *)buffer_ptr(&loginmsg));
+		fprintf(stderr, "%s", (char *)buffer_ptr(&loginmsg));
 		buffer_clear(&loginmsg);
 	}
-	fflush(stdout);
+	fflush(NULL);
 }
 
 void
