b58e57
diff -up openssh-7.4p1/mux.c.controlPath openssh-7.4p1/mux.c
b58e57
--- openssh-7.4p1/mux.c.controlPath	2017-05-04 14:49:44.629247946 +0200
b58e57
+++ openssh-7.4p1/mux.c	2017-05-04 14:52:54.955109022 +0200
b58e57
@@ -1290,6 +1290,12 @@ muxserver_listen(void)
b58e57
 	oerrno = errno;
b58e57
 	umask(old_umask);
b58e57
 	if (muxserver_sock < 0) {
b58e57
+		if (oerrno == ENAMETOOLONG) {
b58e57
+			/* the error is already logged from unix_listener() */
b58e57
+			error("ControlPath %s too long, "
b58e57
+			    "disabling multiplexing", options.control_path);
b58e57
+			goto disable_mux_master;
b58e57
+		}
b58e57
 		if (oerrno == EINVAL || oerrno == EADDRINUSE) {
b58e57
 			error("ControlSocket %s already exists, "
b58e57
 			    "disabling multiplexing", options.control_path);