kentpeacock / rpms / openssh

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