21881806 openssh syslogs message when ending a session:mm_request_receive: socket closed
authorTomas Kuthan <tomas.kuthan@oracle.com>
Sat, 17 Oct 2015 13:20:42 -0700
changeset 4977 eef946d5ac8f
parent 4976 0224a36cbe09
child 4978 055c17ca3402
21881806 openssh syslogs message when ending a session:mm_request_receive: socket closed
components/openssh/patches/033-superfluous_error.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/openssh/patches/033-superfluous_error.patch	Sat Oct 17 13:20:42 2015 -0700
@@ -0,0 +1,22 @@
+Remove error() accidentally inserted for debugging.
+
+OpenSSH 6.8 regression, already fixed in OpenSSH 6.9:
+https://github.com/openssh/openssh-portable/commit/4d24b3b6
+
+Remove this patch when upgrading to OpenSSH 6.9 or higher.
+
+diff -pur old/monitor_wrap.c new/monitor_wrap.c
+--- old/monitor_wrap.c
++++ new/monitor_wrap.c
[email protected]@ -153,10 +153,8 @@ mm_request_receive(int sock, Buffer *m)
+ 	debug3("%s entering", __func__);
+ 
+ 	if (atomicio(read, sock, buf, sizeof(buf)) != sizeof(buf)) {
+-		if (errno == EPIPE) {
+-			error("%s: socket closed", __func__);
++		if (errno == EPIPE)
+ 			cleanup_exit(255);
+-		}
+ 		fatal("%s: read: %s", __func__, strerror(errno));
+ 	}
+ 	msg_len = get_u32(buf);