--- openssh-2.9p2/clientloop.c	Fri Apr 20 14:50:51 2001
+++ clientloop.c	Sat Jul 14 03:23:24 2001
@@ -699,7 +699,8 @@
 		stdout_bytes += len;
 	}
 	/* Write buffered output to stderr. */
-	if (FD_ISSET(fileno(stderr), writeset)) {
+	if (FD_ISSET(fileno(stderr), writeset) &&
+	    options.log_level != SYSLOG_LEVEL_QUIET) {
 		/* Write as much data as possible. */
 		len = write(fileno(stderr), buffer_ptr(&stderr_buffer),
 		    buffer_len(&stderr_buffer));
@@ -948,7 +949,8 @@
 	}
 
 	/* Output any buffered data for stderr. */
-	while (buffer_len(&stderr_buffer) > 0) {
+	while (buffer_len(&stderr_buffer) > 0 &&
+	    options.log_level != SYSLOG_LEVEL_QUIET) {
 		len = write(fileno(stderr), buffer_ptr(&stderr_buffer),
 		    buffer_len(&stderr_buffer));
 		if (len <= 0) {
